diff --git a/Makefile b/Makefile index 2269074..9deccf3 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +.PHONEY: all + +all: thin_repair thin_dump thin_restore + SOURCE=\ endian_utils.cc \ error_set.cc \ @@ -29,6 +33,9 @@ test-programs: $(TEST_PROGRAMS) thin_dump: $(OBJECTS) thin_dump.o g++ $(CPPFLAGS) -o $@ $+ $(LIBS) +thin_restore: $(OBJECTS) thin_restore.o + g++ $(CPPFLAGS) -o $@ $+ $(LIBS) + thin_repair: $(OBJECTS) thin_repair.o g++ $(CPPFLAGS) -o $@ $+ $(LIBS) diff --git a/thin_dump.cc b/thin_dump.cc index 8ebf8f4..554434c 100644 --- a/thin_dump.cc +++ b/thin_dump.cc @@ -11,9 +11,9 @@ using namespace thin_provisioning; namespace { void dump(string const &path) { metadata md(path); - human_readable::ptr emitter(new human_readable); + //human_readable::ptr emitter(new human_readable); - md.dump(); + // md.dump(); } void usage(string const &cmd) { diff --git a/thin_restore.cc b/thin_restore.cc new file mode 100644 index 0000000..381c963 --- /dev/null +++ b/thin_restore.cc @@ -0,0 +1,17 @@ +#include + +#include "metadata.h" + +using namespace persistent_data; +using namespace std; +using namespace thin_provisioning; + +//---------------------------------------------------------------- + +int main(int argc, char **argv) +{ + cerr << "not implemented yet" << endl; + return 0; +} + +//----------------------------------------------------------------