]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: drop --pool option from "rbd group image {add,rm}" 61155/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 20 Dec 2024 10:16:58 +0000 (11:16 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 20 Dec 2024 12:29:46 +0000 (13:29 +0100)
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 <idryomov@gmail.com>
src/test/cli/rbd/help.t
src/tools/rbd/action/Group.cc

index 984175a97b911e120a05874822a392e984e2f902..5f30425835876b44b834e617bdbe1a9d4d1912fc 100644 (file)
                              [--group-namespace <group-namespace>] 
                              [--group <group>] [--image-pool <image-pool>] 
                              [--image-namespace <image-namespace>] 
-                             [--image <image>] [--pool <pool>] 
+                             [--image <image>] 
                              <group-spec> <image-spec> 
   
   Add an image to a group.
     --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 <format>] [--pretty-format] 
                                 [--group-namespace <group-namespace>] 
                                 [--group <group>] [--image-pool <image-pool>] 
                                 [--image-namespace <image-namespace>] 
-                                [--image <image>] [--pool <pool>] 
-                                [--image-id <image-id>] 
+                                [--image <image>] [--image-id <image-id>] 
                                 <group-spec> <image-spec> 
   
   Remove an image from a group.
     --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 info
index 68c74fa945ccb117da0b39007dc86a0f341f368b..100bdc194968df50ece0cd4563a036df20886448 100644 (file)
@@ -964,9 +964,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,
@@ -989,8 +986,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);
 }