From: Douglas Fuller Date: Tue, 25 Jul 2017 17:57:47 +0000 (-0400) Subject: mon/MDSMonitor: Remove command support for legacy syntax X-Git-Tag: v13.1.0~200^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dc073a1c2b9e74df9211b232a98f91cfe86369cd;p=ceph.git mon/MDSMonitor: Remove command support for legacy syntax No longer check for commands for deprecated legacy filesystems. These commands are long since deprecated and this code is no longer needed. Signed-off-by: Douglas Fuller --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index a00fb9721f0c..24159e70833a 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -1237,17 +1237,6 @@ bool MDSMonitor::prepare_command(MonOpRequestRef op) goto out; } - // Only handle legacy commands if there is a filesystem configured - if (pending.legacy_client_fscid == FS_CLUSTER_ID_NONE) { - if (pending.filesystems.size() == 0) { - ss << "No filesystem configured: use `ceph fs new` to create a filesystem"; - } else { - ss << "No filesystem set for use with legacy commands"; - } - r = -EINVAL; - goto out; - } - if (r == -ENOSYS && ss.str().empty()) { ss << "unrecognized command"; }