]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: explicitly show blacklisted state via asok status command 24486/head
authorZhi Zhang <willzzhang@tencent.com>
Wed, 10 Oct 2018 03:15:36 +0000 (11:15 +0800)
committerZhi Zhang <willzzhang@tencent.com>
Wed, 10 Oct 2018 03:15:36 +0000 (11:15 +0800)
It is easy for common users to understand why their clients not working
due to blacklisted state.

Fixes: http://tracker.ceph.com/issues/36352
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
src/client/Client.cc

index 82577eff64fe56f92b71e00d0f6b8435abe81806..e4abf5d85f57c9f3c34e92348d304bffe4d77cd3 100644 (file)
@@ -439,6 +439,7 @@ void Client::dump_status(Formatter *f)
     f->dump_int("mds_epoch", mdsmap->get_epoch());
     f->dump_int("osd_epoch", osd_epoch);
     f->dump_int("osd_epoch_barrier", cap_epoch_barrier);
+    f->dump_bool("blacklisted", blacklisted);
   }
 }