("file", po::value<string>(&file),
"path of file to export or import")
("debug", "Enable diagnostic output to stderr")
+ ("skip-journal-replay", "Disable journal replay")
+ ("skip-mount-omap", "Disable mounting of omap")
;
po::variables_map vm;
debug = true;
}
+ osflagbits_t flags = 0;
+ if (vm.count("skip-journal-replay"))
+ flags |= SKIP_JOURNAL_REPLAY;
+ if (vm.count("skip-mount-omap"))
+ flags |= SKIP_MOUNT_OMAP;
+
global_init(
&def_args, ceph_options, CEPH_ENTITY_TYPE_OSD,
CODE_ENVIRONMENT_UTILITY_NODOUT, 0);
return 1;
}
- ObjectStore *fs = new FileStore(fspath, jpath);
+ ObjectStore *fs = ObjectStore::create(NULL, "filestore", fspath, jpath, flags);
int r = fs->mount();
if (r < 0) {