From fd9556f0ac804a2fed298394177b140a9f5b820c Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Wed, 30 Nov 2011 10:26:22 -0800 Subject: [PATCH] rbd: the showmapped command shouldn't connect to the cluster Signed-off-by: Josh Durgin --- src/rbd.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rbd.cc b/src/rbd.cc index 728a483f84393..a4850c3174425 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -1058,7 +1058,9 @@ int main(int argc, const char **argv) usage_exit(); } - bool talk_to_cluster = (opt_cmd != OPT_MAP && opt_cmd != OPT_UNMAP); + bool talk_to_cluster = (opt_cmd != OPT_MAP && + opt_cmd != OPT_UNMAP && + opt_cmd != OPT_SHOWMAPPED); if (talk_to_cluster && rados.init_with_context(g_ceph_context) < 0) { cerr << "error: couldn't initialize rados!" << std::endl; exit(1); -- 2.39.5