]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: clarify "rbd {group,} rename" command description
authorIlya Dryomov <idryomov@gmail.com>
Tue, 27 Aug 2024 18:34:31 +0000 (20:34 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 4 Sep 2024 12:00:21 +0000 (14:00 +0200)
Make it clearer that, despite a full image or group spec being taken
for source and destination, an image or a group can be renamed only
within its pool or namespace.

Rename across pools or namespaces within the same pool is unsupported.

Fixes: https://tracker.ceph.com/issues/67752
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 5f064a52707af58fd6007734a768899aeb5a32fc)

src/test/cli/rbd/help.t
src/tools/rbd/action/Group.cc
src/tools/rbd/action/Rename.cc

index 77e5eb83f1dd58c9457c90314a22f69dee95495e..1e898539db5e08fc71161e3d7aaa05653b034907 100644 (file)
@@ -50,7 +50,8 @@
       group image remove (... rm)       Remove an image from a group.
       group list (group ls)             List rbd groups.
       group remove (group rm)           Delete a group.
-      group rename                      Rename a group within pool.
+      group rename                      Rename a group within its pool or
+                                        namespace.
       group snap create                 Make a snapshot of a group.
       group snap list (... ls)          List snapshots of a group.
       group snap remove (... rm)        Remove a snapshot from a group.
       pool init                         Initialize pool for use by RBD.
       pool stats                        Display pool statistics.
       remove (rm)                       Delete an image.
-      rename (mv)                       Rename image within pool.
+      rename (mv)                       Rename an image within its pool or
+                                        namespace.
       resize                            Resize (expand or shrink) image.
       snap create (snap add)            Create a snapshot.
       snap limit clear                  Remove snapshot limit.
                           [--dest-group <dest-group>] 
                           <source-group-spec> <dest-group-spec> 
   
-  Rename a group within pool.
+  Rename a group within its pool or namespace.
   
   Positional arguments
     <source-group-spec>  source group specification
                     [--dest-namespace <dest-namespace>] [--dest <dest>] 
                     <source-image-spec> <dest-image-spec> 
   
-  Rename image within pool.
+  Rename an image within its pool or namespace.
   
   Positional arguments
     <source-image-spec>  source image specification
index 5c2232a6fc68f960cee6d0dd0a5e00e662e8b6e2..5658103936a28586d82abb4e985ff1524de44c99 100644 (file)
@@ -875,7 +875,7 @@ Shell::Action action_list(
   {"group", "list"}, {"group", "ls"}, "List rbd groups.",
   "", &get_list_arguments, &execute_list);
 Shell::Action action_rename(
-  {"group", "rename"}, {}, "Rename a group within pool.",
+  {"group", "rename"}, {}, "Rename a group within its pool or namespace.",
   "", &get_rename_arguments, &execute_rename);
 Shell::Action action_add(
   {"group", "image", "add"}, {}, "Add an image to a group.",
index b4954bcbb90af1d536d28fce543521df51325f95..db198d656e2b6db1cde68863efbde3f9797cb182 100644 (file)
@@ -86,8 +86,8 @@ int execute(const po::variables_map &vm,
 }
 
 Shell::Action action(
-  {"rename"}, {"mv"}, "Rename image within pool.", "", &get_arguments,
-  &execute);
+  {"rename"}, {"mv"}, "Rename an image within its pool or namespace.", "",
+  &get_arguments, &execute);
 
 } // namespace rename
 } // namespace action