From dd826a4dafc1d6b8acbc8e1df39886dc1a426923 Mon Sep 17 00:00:00 2001 From: songweibin Date: Sat, 23 Dec 2017 11:43:09 +0800 Subject: [PATCH] rbd: add missing right parenthesis and fix typo Signed-off-by: songweibin --- doc/rados/api/python.rst | 2 +- src/test/cli/rbd/help.t | 6 +++--- src/tools/rbd/action/MirrorImage.cc | 2 +- src/tools/rbd/action/MirrorPool.cc | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/rados/api/python.rst b/doc/rados/api/python.rst index 5854465cb3466..cf4a1790b3eb8 100644 --- a/doc/rados/api/python.rst +++ b/doc/rados/api/python.rst @@ -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, diff --git a/src/test/cli/rbd/help.t b/src/test/cli/rbd/help.t index 876aa88aa3ac9..7f375d7dbfa58 100644 --- a/src/test/cli/rbd/help.t +++ b/src/test/cli/rbd/help.t @@ -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 ] [--pretty-format] - Show RDB mirroring status for an image. + Show RBD mirroring status for an image. Positional arguments image specification @@ -1075,7 +1075,7 @@ Skip test on FreeBSD as it generates different output there. Positional arguments pool name remote cluster spec - (example: [@] + (example: [@]) Optional arguments -p [ --pool ] arg pool name diff --git a/src/tools/rbd/action/MirrorImage.cc b/src/tools/rbd/action/MirrorImage.cc index e0151c9780e90..e5abf701db299 100644 --- a/src/tools/rbd/action/MirrorImage.cc +++ b/src/tools/rbd/action/MirrorImage.cc @@ -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 diff --git a/src/tools/rbd/action/MirrorPool.cc b/src/tools/rbd/action/MirrorPool.cc index ba179d054ce3f..de22d7b93fc26 100644 --- a/src/tools/rbd/action/MirrorPool.cc +++ b/src/tools/rbd/action/MirrorPool.cc @@ -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: [@]"); + "(example: [@])"); options->add_options() ("remote-client-name", po::value(), "remote client name") ("remote-cluster", po::value(), "remote cluster name"); -- 2.39.5