stub thin_restore

This commit is contained in:
Joe Thornber 2011-08-31 14:01:48 +01:00
parent c2ab11e034
commit 28a2639036
3 changed files with 26 additions and 2 deletions

View File

@ -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)

View File

@ -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) {

17
thin_restore.cc Normal file
View File

@ -0,0 +1,17 @@
#include <iostream>
#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;
}
//----------------------------------------------------------------