From: Ilya Dryomov Date: Fri, 20 Dec 2024 10:16:58 +0000 (+0100) Subject: rbd: drop --pool option from "rbd group image {add,rm}" X-Git-Tag: v19.2.1~6^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6725c65473531314a0f9e38c20923467c6ee9681;p=ceph.git rbd: drop --pool option from "rbd group image {add,rm}" It stopped working with removal of get_special_pool_group_names() in commit 3e8624f157a1 ("rbd: add support for namespaces") over six years ago. Given how much time has passed, stop accepting this option. Signed-off-by: Ilya Dryomov (cherry picked from commit 1f71671dc65fa9e35d451e55d8963d60f3198a93) --- diff --git a/src/test/cli/rbd/help.t b/src/test/cli/rbd/help.t index b56144204fd81..f288d6dcfdb7f 100644 --- a/src/test/cli/rbd/help.t +++ b/src/test/cli/rbd/help.t @@ -911,7 +911,7 @@ [--group-namespace ] [--group ] [--image-pool ] [--image-namespace ] - [--image ] [--pool ] + [--image ] Add an image to a group. @@ -929,7 +929,6 @@ --image-pool arg image pool name --image-namespace arg image namespace name --image arg image name - -p [ --pool ] arg pool name unless overridden rbd help group image list usage: rbd group image list [--format ] [--pretty-format] @@ -955,8 +954,7 @@ [--group-namespace ] [--group ] [--image-pool ] [--image-namespace ] - [--image ] [--pool ] - [--image-id ] + [--image ] [--image-id ] Remove an image from a group. @@ -974,7 +972,6 @@ --image-pool arg image pool name --image-namespace arg image namespace name --image arg image name - -p [ --pool ] arg pool name unless overridden --image-id arg image id rbd help group list diff --git a/src/tools/rbd/action/Group.cc b/src/tools/rbd/action/Group.cc index b2d2e97504872..9ea5ee47c1124 100644 --- a/src/tools/rbd/action/Group.cc +++ b/src/tools/rbd/action/Group.cc @@ -799,9 +799,6 @@ void get_add_arguments(po::options_description *positional, add_prefixed_pool_option(options, "image"); add_prefixed_namespace_option(options, "image"); at::add_image_option(options, at::ARGUMENT_MODIFIER_NONE); - - at::add_pool_option(options, at::ARGUMENT_MODIFIER_NONE, - " unless overridden"); } void get_remove_image_arguments(po::options_description *positional, @@ -824,8 +821,6 @@ void get_remove_image_arguments(po::options_description *positional, add_prefixed_namespace_option(options, "image"); at::add_image_option(options, at::ARGUMENT_MODIFIER_NONE); - at::add_pool_option(options, at::ARGUMENT_MODIFIER_NONE, - " unless overridden"); at::add_image_id_option(options); }