Skip to content

Commit b0d8273

Browse files
authored
Merge pull request ceph#59478 from idryomov/wip-67752
rbd: amend "rbd {group,} rename" and "rbd mirror pool" command descriptions Reviewed-by: Ramana Raja <[email protected]> Reviewed-by: N Balachandran <[email protected]>
2 parents a1cd410 + 7e02946 commit b0d8273

File tree

4 files changed

+33
-30
lines changed

4 files changed

+33
-30
lines changed

src/test/cli/rbd/help.t

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
group info Show information about a group.
5252
group list (group ls) List rbd groups.
5353
group remove (group rm) Delete a group.
54-
group rename Rename a group within pool.
54+
group rename Rename a group within its pool or
55+
namespace.
5556
group snap create Make a snapshot of a group.
5657
group snap info Show information about a group snapshot.
5758
group snap list (... ls) List snapshots of a group.
@@ -96,24 +97,25 @@
9697
mirroring.
9798
mirror image snapshot Create RBD mirroring image snapshot.
9899
mirror image status Show RBD mirroring status for an image.
99-
mirror pool demote Demote all primary images in the pool.
100-
mirror pool disable Disable RBD mirroring by default within a
101-
pool.
102-
mirror pool enable Enable RBD mirroring by default within a
103-
pool.
104-
mirror pool info Show information about the pool mirroring
105-
configuration.
100+
mirror pool demote Demote all primary images in a pool or
101+
namespace.
102+
mirror pool disable Disable RBD mirroring in a pool or
103+
namespace.
104+
mirror pool enable Enable RBD mirroring in a pool or
105+
namespace.
106+
mirror pool info Show mirroring configuration for a pool
107+
or namespace.
106108
mirror pool peer add Add a mirroring peer to a pool.
107109
mirror pool peer bootstrap create Create a peer bootstrap token to import
108110
in a remote cluster
109111
mirror pool peer bootstrap import Import a peer bootstrap token created
110112
from a remote cluster
111113
mirror pool peer remove Remove a mirroring peer from a pool.
112114
mirror pool peer set Update mirroring peer settings.
113-
mirror pool promote Promote all non-primary images in the
114-
pool.
115-
mirror pool status Show status for all mirrored images in
116-
the pool.
115+
mirror pool promote Promote all non-primary images in a pool
116+
or namespace.
117+
mirror pool status Show status for all mirrored images in a
118+
pool or namespace.
117119
mirror snapshot schedule add Add mirror snapshot schedule.
118120
mirror snapshot schedule list (... ls)
119121
List mirror snapshot schedule.
@@ -133,7 +135,8 @@
133135
pool init Initialize pool for use by RBD.
134136
pool stats Display pool statistics.
135137
remove (rm) Delete an image.
136-
rename (mv) Rename image within pool.
138+
rename (mv) Rename an image within its pool or
139+
namespace.
137140
resize Resize (expand or shrink) image.
138141
snap create (snap add) Create a snapshot.
139142
snap limit clear Remove snapshot limit.
@@ -1034,7 +1037,7 @@
10341037
[--dest-group <dest-group>]
10351038
<source-group-spec> <dest-group-spec>
10361039

1037-
Rename a group within pool.
1040+
Rename a group within its pool or namespace.
10381041

10391042
Positional arguments
10401043
<source-group-spec> source group specification
@@ -1802,7 +1805,7 @@
18021805
usage: rbd mirror pool demote [--pool <pool>] [--namespace <namespace>]
18031806
<pool-spec>
18041807

1805-
Demote all primary images in the pool.
1808+
Demote all primary images in a pool or namespace.
18061809

18071810
Positional arguments
18081811
<pool-spec> pool specification
@@ -1816,7 +1819,7 @@
18161819
usage: rbd mirror pool disable [--pool <pool>] [--namespace <namespace>]
18171820
<pool-spec>
18181821
1819-
Disable RBD mirroring by default within a pool.
1822+
Disable RBD mirroring in a pool or namespace.
18201823
18211824
Positional arguments
18221825
<pool-spec> pool specification
@@ -1831,7 +1834,7 @@
18311834
[--site-name <site-name>]
18321835
<pool-spec> <mode>
18331836

1834-
Enable RBD mirroring by default within a pool.
1837+
Enable RBD mirroring in a pool or namespace.
18351838

18361839
Positional arguments
18371840
<pool-spec> pool specification
@@ -1848,7 +1851,7 @@
18481851
[--format <format>] [--pretty-format] [--all]
18491852
<pool-spec>
18501853
1851-
Show information about the pool mirroring configuration.
1854+
Show mirroring configuration for a pool or namespace.
18521855
18531856
Positional arguments
18541857
<pool-spec> pool specification
@@ -1956,7 +1959,7 @@
19561959
[--namespace <namespace>]
19571960
<pool-spec>
19581961

1959-
Promote all non-primary images in the pool.
1962+
Promote all non-primary images in a pool or namespace.
19601963

19611964
Positional arguments
19621965
<pool-spec> pool specification
@@ -1972,7 +1975,7 @@
19721975
[--format <format>] [--pretty-format] [--verbose]
19731976
<pool-spec>
19741977
1975-
Show status for all mirrored images in the pool.
1978+
Show status for all mirrored images in a pool or namespace.
19761979
19771980
Positional arguments
19781981
<pool-spec> pool specification
@@ -2262,7 +2265,7 @@
22622265
[--dest-namespace <dest-namespace>] [--dest <dest>]
22632266
<source-image-spec> <dest-image-spec>
22642267

2265-
Rename image within pool.
2268+
Rename an image within its pool or namespace.
22662269

22672270
Positional arguments
22682271
<source-image-spec> source image specification

src/tools/rbd/action/Group.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ Shell::Action action_list(
10461046
{"group", "list"}, {"group", "ls"}, "List rbd groups.",
10471047
"", &get_list_arguments, &execute_list);
10481048
Shell::Action action_rename(
1049-
{"group", "rename"}, {}, "Rename a group within pool.",
1049+
{"group", "rename"}, {}, "Rename a group within its pool or namespace.",
10501050
"", &get_rename_arguments, &execute_rename);
10511051
Shell::Action action_info(
10521052
{"group", "info"}, {}, "Show information about a group.",

src/tools/rbd/action/MirrorPool.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,27 +1744,27 @@ Shell::Action action_set(
17441744

17451745
Shell::Action action_disable(
17461746
{"mirror", "pool", "disable"}, {},
1747-
"Disable RBD mirroring by default within a pool.", "",
1747+
"Disable RBD mirroring in a pool or namespace.", "",
17481748
&get_disable_arguments, &execute_disable);
17491749
Shell::Action action_enable(
17501750
{"mirror", "pool", "enable"}, {},
1751-
"Enable RBD mirroring by default within a pool.", "",
1751+
"Enable RBD mirroring in a pool or namespace.", "",
17521752
&get_enable_arguments, &execute_enable);
17531753
Shell::Action action_info(
17541754
{"mirror", "pool", "info"}, {},
1755-
"Show information about the pool mirroring configuration.", {},
1755+
"Show mirroring configuration for a pool or namespace.", {},
17561756
&get_info_arguments, &execute_info);
17571757
Shell::Action action_status(
17581758
{"mirror", "pool", "status"}, {},
1759-
"Show status for all mirrored images in the pool.", {},
1759+
"Show status for all mirrored images in a pool or namespace.", {},
17601760
&get_status_arguments, &execute_status);
17611761
Shell::Action action_promote(
17621762
{"mirror", "pool", "promote"}, {},
1763-
"Promote all non-primary images in the pool.", {},
1763+
"Promote all non-primary images in a pool or namespace.", {},
17641764
&get_promote_arguments, &execute_promote);
17651765
Shell::Action action_demote(
17661766
{"mirror", "pool", "demote"}, {},
1767-
"Demote all primary images in the pool.", {},
1767+
"Demote all primary images in a pool or namespace.", {},
17681768
&get_demote_arguments, &execute_demote);
17691769

17701770
} // namespace mirror_pool

src/tools/rbd/action/Rename.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ int execute(const po::variables_map &vm,
8686
}
8787

8888
Shell::Action action(
89-
{"rename"}, {"mv"}, "Rename image within pool.", "", &get_arguments,
90-
&execute);
89+
{"rename"}, {"mv"}, "Rename an image within its pool or namespace.", "",
90+
&get_arguments, &execute);
9191

9292
} // namespace rename
9393
} // namespace action

0 commit comments

Comments
 (0)