]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: minor cleanup for rbd namespace 23770/head
authorsongweibin <song.weibin@zte.com.cn>
Tue, 28 Aug 2018 08:50:41 +0000 (16:50 +0800)
committersongweibin <song.weibin@zte.com.cn>
Thu, 30 Aug 2018 10:32:00 +0000 (18:32 +0800)
Signed-off-by: songweibin <song.weibin@zte.com.cn>
src/librbd/api/Namespace.cc
src/tools/rbd/action/Namespace.cc

index 040adb8706197b82afdebd3e19a37a9ca91d3d7d..6675640628d10740eb79f12f2e86bb97012bc24d 100644 (file)
@@ -50,7 +50,7 @@ int Namespace<I>::create(librados::IoCtx& io_ctx, const std::string& name)
 rollback:
   int ret_val = cls_client::namespace_remove(&default_ns_ctx, name);
   if (ret_val < 0) {
-    lderr(cct) << "failed to remove namespace: " << cpp_strerror(r) << dendl;
+    lderr(cct) << "failed to remove namespace: " << cpp_strerror(ret_val) << dendl;
   }
 
   return r;
index c1971fa1785c97d395b55254624efdca6b0ccb56..7930bfd6999b936b033db385b0cecede67347b25 100644 (file)
@@ -159,7 +159,7 @@ int execute_list(const po::variables_map &vm,
   return 0;
 }
 
-Shell::Action action_move(
+Shell::Action action_create(
   {"namespace", "create"}, {},
    "Create an RBD image namespace.", "",
   &get_create_arguments, &execute_create);