From f7f1b37c32e06a28143e31bdef96e24dcc78b321 Mon Sep 17 00:00:00 2001 From: songweibin Date: Tue, 28 Aug 2018 16:50:41 +0800 Subject: [PATCH] rbd: minor cleanup for rbd namespace Signed-off-by: songweibin --- src/librbd/api/Namespace.cc | 2 +- src/tools/rbd/action/Namespace.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librbd/api/Namespace.cc b/src/librbd/api/Namespace.cc index 040adb8706197..6675640628d10 100644 --- a/src/librbd/api/Namespace.cc +++ b/src/librbd/api/Namespace.cc @@ -50,7 +50,7 @@ int Namespace::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; diff --git a/src/tools/rbd/action/Namespace.cc b/src/tools/rbd/action/Namespace.cc index c1971fa1785c9..7930bfd6999b9 100644 --- a/src/tools/rbd/action/Namespace.cc +++ b/src/tools/rbd/action/Namespace.cc @@ -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); -- 2.39.5