]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rados command: Disable rados export/import (see feature #9403 to enable again)
authorDavid Zafman <dzafman@redhat.com>
Tue, 9 Sep 2014 18:24:55 +0000 (11:24 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 20 Oct 2014 17:47:51 +0000 (10:47 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/tools/rados/rados.cc

index c83b8de393ae51915d2f4371e02f1a780f802ac7..6afcc0ed21016dc39ed8897a8cdbbe3a7b2e0dca 100644 (file)
@@ -2775,8 +2775,11 @@ int main(int argc, const char **argv)
     cerr << "rados: you must give an action. Try --help" << std::endl;
     return 1;
   }
-  if ((strcmp(args[0], "import") == 0) || (strcmp(args[0], "export") == 0))
-    return rados_tool_sync(opts, args);
-  else
+  if ((strcmp(args[0], "import") == 0) || (strcmp(args[0], "export") == 0)) {
+    cout << "The import and export operations are not available" << std::endl;
+    exit(1);
+    //return rados_tool_sync(opts, args);
+  } else {
     return rados_tool_common(opts, args);
+  }
 }