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 <dfuller@redhat.com>
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";
}