]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: mark newfs with OBSOLETE flag
authorJohn Spray <john.spray@redhat.com>
Tue, 21 Mar 2017 16:04:39 +0000 (12:04 -0400)
committerJohn Spray <john.spray@redhat.com>
Tue, 21 Mar 2017 16:04:39 +0000 (12:04 -0400)
+ remove the explicit handler for it.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/MDSMonitor.cc
src/mon/MonCommands.h

index 3b752e39cf9a470911f3a3128bbbac63b115f655..ea354af2e0444e203ad8c31d9c309fd60e50bed7 100644 (file)
@@ -1188,15 +1188,6 @@ bool MDSMonitor::prepare_command(MonOpRequestRef op)
     }
   }
 
-  if (prefix == "mds newfs") {
-    // newfs is the legacy command that in single-filesystem times
-    // used to be equivalent to doing an "fs rm ; fs new".  We
-    // can't do this in a sane way in multi-filesystem world.
-    ss << "'newfs' no longer available.  Please use 'fs new'.";
-    r = -EINVAL;
-    goto out;
-  } 
-
   r = filesystem_command(op, prefix, cmdmap, ss);
   if (r >= 0) {
     goto out;
index 5a5dcb61d29b3bf84a69458868b95c157d56b885..a9592f8952f4053af1fa66cfb5d8a3c8a69b1d30 100644 (file)
@@ -370,7 +370,7 @@ COMMAND_WITH_FLAG("mds newfs " \
        "name=data,type=CephInt,range=0 " \
        "name=sure,type=CephChoices,strings=--yes-i-really-mean-it,req=false", \
        "make new filesystem using pools <metadata> and <data>", \
-       "mds", "rw", "cli,rest", FLAG(DEPRECATED))
+       "mds", "rw", "cli,rest", FLAG(OBSOLETE))
 COMMAND("fs new " \
        "name=fs_name,type=CephString " \
        "name=metadata,type=CephString " \