]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: implement 'fsid' command
authorSage Weil <sage.weil@dreamhost.com>
Sat, 12 Nov 2011 22:55:06 +0000 (14:55 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 12 Nov 2011 22:55:06 +0000 (14:55 -0800)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mon/Monitor.cc

index 7412e6fcc1c2e73f01cbdf2ec5d401ae55cb98b6..67ac8f1349ab9c1f6bf686a8ceaf6c5f36809bf1 100644 (file)
@@ -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; i<m->cmd.size(); i++) {