From dc073a1c2b9e74df9211b232a98f91cfe86369cd Mon Sep 17 00:00:00 2001 From: Douglas Fuller Date: Tue, 25 Jul 2017 13:57:47 -0400 Subject: [PATCH] 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 --- src/mon/MDSMonitor.cc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index a00fb9721f0..24159e70833 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"; } -- 2.39.5