]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mgr/DaemonServer.cc
import 15.2.5
[ceph.git] / ceph / src / mgr / DaemonServer.cc
index f695203abbbdfa6e38edce7b5f44cc7840390ca1..5610fa769255c66a20f0836c50a232833a328b96 100644 (file)
@@ -1834,6 +1834,12 @@ bool DaemonServer::_handle_command(
     int r = 0;
     string name;
     if (cmd_getval(cmdctx->cmdmap, "key", name)) {
+      // handle special options
+      if (name == "fsid") {
+       cmdctx->odata.append(stringify(monc->get_fsid()) + "\n");
+       cmdctx->reply(r, ss);
+       return true;
+      }
       auto p = daemon->config.find(name);
       if (p != daemon->config.end() &&
          !p->second.empty()) {