]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: add missing right parenthesis and fix typo 19659/head
authorsongweibin <song.weibin@zte.com.cn>
Sat, 23 Dec 2017 03:43:09 +0000 (11:43 +0800)
committersongweibin <song.weibin@zte.com.cn>
Sun, 24 Dec 2017 01:21:09 +0000 (09:21 +0800)
Signed-off-by: songweibin <song.weibin@zte.com.cn>
doc/rados/api/python.rst
src/test/cli/rbd/help.t
src/tools/rbd/action/MirrorImage.cc
src/tools/rbd/action/MirrorPool.cc

index 5854465cb346680710090c0eaae6a3f5320221ff..cf4a1790b3eb8315c7995935a05d5fd10a8fe580 100644 (file)
@@ -177,7 +177,7 @@ or
 .. code-block:: python
    :linenos:
 
-        ioctx = cluster.open_ioctx(pool_id)
+        ioctx = cluster.open_ioctx2(pool_id)
 
 
 Once you have an I/O context, you can read/write objects, extended attributes,
index 876aa88aa3ac9b35407b828865526aa5bb32786e..7f375d7dbfa588db6ae89cebb042963757f1ad9c 100644 (file)
@@ -63,7 +63,7 @@ Skip test on FreeBSD as it generates different output there.
                                         mirroring.
       mirror image resync               Force resync to primary image for RBD
                                         mirroring.
-      mirror image status               Show RDB mirroring status for an image.
+      mirror image status               Show RBD mirroring status for an image.
       mirror pool demote                Demote all primary images in the pool.
       mirror pool disable               Disable RBD mirroring by default within a
                                         pool.
@@ -1000,7 +1000,7 @@ Skip test on FreeBSD as it generates different output there.
                                  [--format <format>] [--pretty-format] 
                                  <image-spec> 
   
-  Show RDB mirroring status for an image.
+  Show RBD mirroring status for an image.
   
   Positional arguments
     <image-spec>         image specification
@@ -1075,7 +1075,7 @@ Skip test on FreeBSD as it generates different output there.
   Positional arguments
     <pool-name>              pool name
     <remote-cluster-spec>    remote cluster spec
-                             (example: [<client name>@]<cluster name>
+                             (example: [<client name>@]<cluster name>)
   
   Optional arguments
     -p [ --pool ] arg        pool name
index e0151c9780e90cac38f4c3c6a807bcb19325de6d..e5abf701db29979ad546d16bab3a573e99ba6603 100644 (file)
@@ -313,7 +313,7 @@ Shell::Action action_resync(
   &get_arguments, &execute_resync);
 Shell::Action action_status(
   {"mirror", "image", "status"}, {},
-  "Show RDB mirroring status for an image.", "",
+  "Show RBD mirroring status for an image.", "",
   &get_status_arguments, &execute_status);
 
 } // namespace mirror_image
index ba179d054ce3f2e50fd32a6c4c89511298e5db78..de22d7b93fc267973d131b7f72056427e893aba1 100644 (file)
@@ -521,7 +521,7 @@ void get_peer_add_arguments(po::options_description *positional,
   at::add_pool_options(positional, options);
   positional->add_options()
     ("remote-cluster-spec", "remote cluster spec\n"
-     "(example: [<client name>@]<cluster name>");
+     "(example: [<client name>@]<cluster name>)");
   options->add_options()
     ("remote-client-name", po::value<std::string>(), "remote client name")
     ("remote-cluster", po::value<std::string>(), "remote cluster name");