diff options
author | Josh Durgin <josh.durgin@dreamhost.com> | 2011-11-30 10:26:22 -0800 |
---|---|---|
committer | Josh Durgin <josh.durgin@dreamhost.com> | 2011-12-06 10:26:24 -0800 |
commit | fd9556f0ac804a2fed298394177b140a9f5b820c (patch) | |
tree | a0bf563bb4817c2eed15bef3af16fe84797abe92 /src/rbd.cc | |
parent | 16a211bfee521bd0d26c957c15c07c129edfb138 (diff) | |
download | ceph-fd9556f0ac804a2fed298394177b140a9f5b820c.tar.gz |
rbd: the showmapped command shouldn't connect to the cluster
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Diffstat (limited to 'src/rbd.cc')
-rw-r--r-- | src/rbd.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rbd.cc b/src/rbd.cc index 728a483f843..a4850c31744 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); |