]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rbd: --source-spec-file should be --source-spec-path
authorIlya Dryomov <idryomov@gmail.com>
Thu, 29 Apr 2021 15:47:49 +0000 (17:47 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 29 Apr 2021 16:10:54 +0000 (18:10 +0200)
It was renamed during development, get rid of the leftovers.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
doc/rbd/rbd-live-migration.rst
src/tools/rbd/action/Migration.cc

index fef951fb3b7801cc639a309f3545bf8d8f8d60ce..c3e09193d3114feede989591ef59c00fee0fa9ec 100644 (file)
@@ -116,7 +116,7 @@ The import-only live-migration process is initiated by running the same
 and providing a JSON-encoded ``source-spec`` to describe how to access
 the source image data. This ``source-spec`` can either be passed
 directly via the `--source-spec` optional, or via a file or STDIN via the
-`--source-spec-file` optional::
+`--source-spec-path` optional::
 
         $ rbd migration prepare --import-only --source-spec "<JSON>" migration_target
 
index e4e12276820d65899c1b0e875161f1ded9158c0c..05b15f1869ccad0a147402484b3fdb5ebbce5d3e 100644 (file)
@@ -177,8 +177,8 @@ int execute_prepare(const po::variables_map &vm,
 
   std::string source_spec;
   if (vm.count("source-spec") && vm.count("source-spec-path")) {
-    std::cerr << "rbd: cannot specify both source-image-spec and "
-              << "source-spec/source-spec-file" << std::endl;
+    std::cerr << "rbd: cannot specify both source-spec and source-spec-path"
+              << std::endl;
     return -EINVAL;
   } else if (vm.count("source-spec-path")) {
     std::string source_spec_path = vm["source-spec-path"].as<std::string>();