]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs: add gid to asok status 11487/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 13 Oct 2016 03:30:32 +0000 (23:30 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 13 Oct 2016 19:59:40 +0000 (15:59 -0400)
This is useful e.g. for building a database with a unique ID for each
entity.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/client/Client.cc
src/mds/MDSDaemon.cc

index 5de2b22cbbc2b35d9176addf47c624077b648a89..9eca029a300cbfb80592cadded5ce1a6a2803ac2 100644 (file)
@@ -460,6 +460,7 @@ void Client::dump_status(Formatter *f)
 
     f->dump_int("dentry_count", lru.lru_get_size());
     f->dump_int("dentry_pinned_count", lru.lru_get_num_pinned());
+    f->dump_int("id", get_nodeid().v);
     f->dump_int("inode_count", inode_map.size());
     f->dump_int("mds_epoch", mdsmap->get_epoch());
     f->dump_int("osd_epoch", osd_epoch);
index e539fc57eb969177314e24a6e739dd35ca3ba1d4..48215801a70239759b23b9ace13d3b7af09ac16d 100644 (file)
@@ -199,6 +199,7 @@ void MDSDaemon::dump_status(Formatter *f)
     f->dump_unsigned("whoami", MDS_RANK_NONE);
   }
 
+  f->dump_int("id", monc->get_global_id());
   f->dump_string("want_state", ceph_mds_state_name(beacon.get_want_state()));
   f->dump_string("state", ceph_mds_state_name(mdsmap->get_state_gid(mds_gid_t(
            monc->get_global_id()))));