]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: the showmapped command shouldn't connect to the cluster
authorJosh Durgin <josh.durgin@dreamhost.com>
Wed, 30 Nov 2011 18:26:22 +0000 (10:26 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Tue, 6 Dec 2011 18:26:24 +0000 (10:26 -0800)
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/rbd.cc

index 728a483f84393e81c8beed7a6e93885f50e93aa1..a4850c3174425965859e70f26f67c2a670f66c15 100644 (file)
@@ -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);