]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: use consistent "non-primary" verbiage for image mirroring
authorJason Dillaman <dillaman@redhat.com>
Fri, 25 Mar 2016 15:15:18 +0000 (11:15 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 29 Mar 2016 19:19:25 +0000 (15:19 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/cli/rbd/help.t
src/tools/rbd/action/MirrorImage.cc

index e68f186a7104da45eca558401fe9b1c89c862edc..f68a486616f243ebebb6c0487c94eb7de8d310a2 100644 (file)
@@ -42,7 +42,8 @@
       lock remove (lock rm)       Release a lock on an image.
       map                         Map image to a block device using the kernel.
       merge-diff                  Merge two diff exports together.
-      mirror image demote         Demote an image to secondary for RBD mirroring.
+      mirror image demote         Demote an image to non-primary for RBD
+                                  mirroring.
       mirror image disable        Disable RBD mirroring for an image.
       mirror image enable         Enable RBD mirroring for an image.
       mirror image promote        Promote an image to primary for RBD mirroring.
   usage: rbd mirror image demote [--pool <pool>] [--image <image>] 
                                  <image-spec> 
   
-  Demote an image to secondary for RBD mirroring.
+  Demote an image to non-primary for RBD mirroring.
   
   Positional arguments
     <image-spec>         image specification
index d3a322cf8aed0fded333ef164e1b6c6b2e84d832..ecb838fe0c8a4af82a545f0d5ce80f047c50a7d5 100644 (file)
@@ -121,7 +121,7 @@ int execute_promote(const po::variables_map &vm) {
     return r;
   }
 
-  std::cout << "" << std::endl;
+  std::cout << "Image promoted to primary" << std::endl;
   return 0;
 }
 
@@ -148,11 +148,11 @@ int execute_demote(const po::variables_map &vm) {
 
   r = image.mirror_image_demote();
   if (r < 0) {
-    std::cerr << "rbd: error demoting image to secondary" << std::endl;
+    std::cerr << "rbd: error demoting image to non-primary" << std::endl;
     return r;
   }
 
-  std::cout << "Image demoted to secondary" << std::endl;
+  std::cout << "Image demoted to non-primary" << std::endl;
   return 0;
 }
 
@@ -201,7 +201,7 @@ Shell::Action action_promote(
   &get_arguments_promote, &execute_promote);
 Shell::Action action_demote(
   {"mirror", "image", "demote"}, {},
-  "Demote an image to secondary for RBD mirroring.", "",
+  "Demote an image to non-primary for RBD mirroring.", "",
   &get_arguments, &execute_demote);
 Shell::Action action_resync(
   {"mirror", "image", "resync"}, {},