mirror of
https://github.com/ceph/ceph
synced 2025-01-01 00:22:25 +00:00
rbd: use consistent "non-primary" verbiage for image mirroring
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
04892961d2
commit
4adc57ecfb
@ -42,7 +42,8 @@
|
||||
lock remove (lock rm) Release a lock on an image.
|
||||
map Map image to a block device using the kernel.
|
||||
merge-diff Merge two diff exports together.
|
||||
mirror image demote Demote an image to secondary for RBD mirroring.
|
||||
mirror image demote Demote an image to non-primary for RBD
|
||||
mirroring.
|
||||
mirror image disable Disable RBD mirroring for an image.
|
||||
mirror image enable Enable RBD mirroring for an image.
|
||||
mirror image promote Promote an image to primary for RBD mirroring.
|
||||
@ -755,7 +756,7 @@
|
||||
usage: rbd mirror image demote [--pool <pool>] [--image <image>]
|
||||
<image-spec>
|
||||
|
||||
Demote an image to secondary for RBD mirroring.
|
||||
Demote an image to non-primary for RBD mirroring.
|
||||
|
||||
Positional arguments
|
||||
<image-spec> image specification
|
||||
|
@ -121,7 +121,7 @@ int execute_promote(const po::variables_map &vm) {
|
||||
return r;
|
||||
}
|
||||
|
||||
std::cout << "" << std::endl;
|
||||
std::cout << "Image promoted to primary" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -148,11 +148,11 @@ int execute_demote(const po::variables_map &vm) {
|
||||
|
||||
r = image.mirror_image_demote();
|
||||
if (r < 0) {
|
||||
std::cerr << "rbd: error demoting image to secondary" << std::endl;
|
||||
std::cerr << "rbd: error demoting image to non-primary" << std::endl;
|
||||
return r;
|
||||
}
|
||||
|
||||
std::cout << "Image demoted to secondary" << std::endl;
|
||||
std::cout << "Image demoted to non-primary" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -201,7 +201,7 @@ Shell::Action action_promote(
|
||||
&get_arguments_promote, &execute_promote);
|
||||
Shell::Action action_demote(
|
||||
{"mirror", "image", "demote"}, {},
|
||||
"Demote an image to secondary for RBD mirroring.", "",
|
||||
"Demote an image to non-primary for RBD mirroring.", "",
|
||||
&get_arguments, &execute_demote);
|
||||
Shell::Action action_resync(
|
||||
{"mirror", "image", "resync"}, {},
|
||||
|
Loading…
Reference in New Issue
Block a user