]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: s/group-spec/group-snap-spec for group snapshot
authorsongweibin <song.weibin@zte.com.cn>
Wed, 31 Jan 2018 02:13:34 +0000 (10:13 +0800)
committersongweibin <song.weibin@zte.com.cn>
Wed, 31 Jan 2018 04:20:18 +0000 (12:20 +0800)
Signed-off-by: songweibin <song.weibin@zte.com.cn>
src/test/cli/rbd/help.t
src/tools/rbd/ArgumentTypes.cc
src/tools/rbd/ArgumentTypes.h

index 5007698f34d5adb42fbdc54a47ff16c7d40d6911..bbabd2cb3816c4fc66ac812e9ceaa43dc50baf7c 100644 (file)
@@ -593,12 +593,12 @@ Skip test on FreeBSD as it generates different output there.
   
   rbd help group snap create
   usage: rbd group snap create [--pool <pool>] [--group <group>] [--snap <snap>] 
-                               <group-spec> 
+                               <group-snap-spec> 
   
   Make a snapshot of a group.
   
   Positional arguments
-    <group-spec>         group specification
+    <group-snap-spec>    group specification
                          (example: [<pool-name>/]<group-name>@<snap-name>)
   
   Optional arguments
@@ -625,12 +625,12 @@ Skip test on FreeBSD as it generates different output there.
   
   rbd help group snap remove
   usage: rbd group snap remove [--pool <pool>] [--group <group>] [--snap <snap>] 
-                               <group-spec> 
+                               <group-snap-spec> 
   
   Remove a snapshot from a group.
   
   Positional arguments
-    <group-spec>         group specification
+    <group-snap-spec>    group specification
                          (example: [<pool-name>/]<group-name>@<snap-name>)
   
   Optional arguments
@@ -641,12 +641,12 @@ Skip test on FreeBSD as it generates different output there.
   rbd help group snap rename
   usage: rbd group snap rename [--pool <pool>] [--group <group>] [--snap <snap>] 
                                [--dest-snap <dest-snap>] 
-                               <group-spec> <dest-snap> 
+                               <group-snap-spec> <dest-snap> 
   
   Rename group's snapshot.
   
   Positional arguments
-    <group-spec>         group specification
+    <group-snap-spec>    group specification
                          (example: [<pool-name>/]<group-name>@<snap-name>)
     <dest-snap>          destination snapshot name
                          (example: <snapshot-name>)
index 132a520a8badfbe15c9cf7e2c0a8561d0396a9c6..6edcf9cebb76a76270b0ba7b2107a77046be3dc4 100644 (file)
@@ -227,7 +227,7 @@ void add_group_spec_options(po::options_description *pos,
   } else {
     add_snap_option(opt, modifier);
     pos->add_options()
-      ((get_name_prefix(modifier) + GROUP_SPEC).c_str(),
+      ((get_name_prefix(modifier) + GROUP_SNAP_SPEC).c_str(),
        (get_description_prefix(modifier) + "group specification\n" +
          "(example: [<pool-name>/]<group-name>@<snap-name>)").c_str());
   }
index 0958b14d46b65bc340e56272b1faa1aebc47eaaf..1d5d8a817375eb447d9c1d524ed1ef146857c467 100644 (file)
@@ -37,6 +37,7 @@ static const std::string POSITIONAL_COMMAND_SPEC("positional-command-spec");
 static const std::string POSITIONAL_ARGUMENTS("positional-arguments");
 static const std::string IMAGE_SPEC("image-spec");
 static const std::string GROUP_SPEC("group-spec");
+static const std::string GROUP_SNAP_SPEC("group-snap-spec");
 static const std::string SNAPSHOT_SPEC("snap-spec");
 static const std::string IMAGE_OR_SNAPSHOT_SPEC("image-or-snap-spec");
 static const std::string JOURNAL_SPEC("journal-spec");