]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: Check for keyvaluestore experimental feature
authorDavid Zafman <dzafman@redhat.com>
Tue, 10 Feb 2015 01:28:04 +0000 (17:28 -0800)
committerDavid Zafman <dzafman@redhat.com>
Wed, 13 May 2015 20:09:11 +0000 (13:09 -0700)
Don't list keyvaluestore as a valid type if feature not enabled

Signed-off-by: David Zafman <dzafman@redhat.com>
src/tools/ceph_objectstore_tool.cc

index 76a710b59d567bc5ea5c988f8c374b071623f9f4..c9ba9ed1c3d4ba6e292b533c60520d8db8292735 100644 (file)
@@ -2520,6 +2520,11 @@ int main(int argc, char **argv)
   ObjectStore *fs = ObjectStore::create(g_ceph_context, type, dpath, jpath, flags);
   if (fs == NULL) {
     cerr << "Must provide --type (filestore, memstore, keyvaluestore)" << std::endl;
+    if (type == "keyvaluestore") {
+      cerr << "Add \"keyvaluestore\" to "
+           << "enable_experimental_unrecoverable_data_corrupting_features"
+           << std::endl;
+    }
     exit(1);
   }