From: Sage Weil Date: Sat, 12 Nov 2011 22:55:06 +0000 (-0800) Subject: mon: implement 'fsid' command X-Git-Tag: v0.39~65 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ee02a1e12b0aea409df42052c895170bc0f1ca3e;p=ceph.git mon: implement 'fsid' command Signed-off-by: Sage Weil --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 7412e6fcc1c2..67ac8f1349ab 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -721,6 +721,12 @@ void Monitor::handle_command(MMonCommand *m) monmon()->dispatch(m); return; } + if (m->cmd[0] == "fsid") { + stringstream ss; + ss << monmap->fsid; + reply_command(m, 0, ss.str(), rdata, 0); + return; + } if (m->cmd[0] == "log") { stringstream ss; for (unsigned i=1; icmd.size(); i++) {