From: Josh Durgin Date: Wed, 30 Nov 2011 18:26:22 +0000 (-0800) Subject: rbd: the showmapped command shouldn't connect to the cluster X-Git-Tag: v0.40~211 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fd9556f0ac804a2fed298394177b140a9f5b820c;p=ceph.git rbd: the showmapped command shouldn't connect to the cluster Signed-off-by: Josh Durgin --- diff --git a/src/rbd.cc b/src/rbd.cc index 728a483f8439..a4850c317442 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);