]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: rados: drop --force option
authorNathan Cutler <ncutler@suse.com>
Sun, 28 Jan 2018 11:15:18 +0000 (12:15 +0100)
committerNathan Cutler <ncutler@suse.com>
Sun, 28 Jan 2018 11:17:15 +0000 (12:17 +0100)
The global -f / --force option was introduced by
3425a8e5031a4f0c9c0eb85e8a329b02d05b9420 for use in import/export.

After being rewritten by 3425a8e5031a4f0c9c0eb85e8a329b02d05b9420, the
import/export no longer uses --force.

I examined the rados tool source code and the test_rados_tool.sh
script, with the conclusion that the rados tool does not use the
--force option at all. So it's dead code ripe for pruning.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/tools/rados/rados.cc

index 2b6843e5aeacde3465018d7e445575f55806916b..cc1bfd0b5e153ebb646f729ce098e2ac167a273d 100644 (file)
@@ -3733,8 +3733,6 @@ int main(int argc, const char **argv)
     } else if (ceph_argparse_flag(args, i, "-h", "--help", (char*)NULL)) {
       usage(cout);
       exit(0);
-    } else if (ceph_argparse_flag(args, i, "-f", "--force", (char*)NULL)) {
-      opts["force"] = "true";
     } else if (ceph_argparse_flag(args, i, "--force-full", (char*)NULL)) {
       opts["force-full"] = "true";
     } else if (ceph_argparse_flag(args, i, "-d", "--delete-after", (char*)NULL)) {