mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
cleanup: use y/n instead of y|n
Use same for of yes no query everywhere.
This commit is contained in:
parent
1c4fe47308
commit
496953fb39
@ -55,7 +55,7 @@ A status code of 1 is used for other failures.
|
|||||||
Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.
|
Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.
|
||||||
If /dev/vg/test contains ext2/ext3/ext4
|
If /dev/vg/test contains ext2/ext3/ext4
|
||||||
filesystem it will be unmounted prior the resize.
|
filesystem it will be unmounted prior the resize.
|
||||||
All [y|n] questions will be answered 'y'.
|
All [y/n] questions will be answered 'y'.
|
||||||
.sp
|
.sp
|
||||||
.B fsadm \-e \-y resize /dev/vg/test 1000M
|
.B fsadm \-e \-y resize /dev/vg/test 1000M
|
||||||
.SH ENVIRONMENT VARIABLES
|
.SH ENVIRONMENT VARIABLES
|
||||||
|
@ -2721,7 +2721,7 @@ static int _lvconvert_to_pool(struct cmd_context *cmd,
|
|||||||
log_warn("THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)");
|
log_warn("THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)");
|
||||||
|
|
||||||
if (!lp->yes &&
|
if (!lp->yes &&
|
||||||
yes_no_prompt("Do you really want to convert \"%s/%s\"? [y|n]: ",
|
yes_no_prompt("Do you really want to convert \"%s/%s\"? [y/n]: ",
|
||||||
pool_lv->vg->name, pool_lv->name) == 'n') {
|
pool_lv->vg->name, pool_lv->name) == 'n') {
|
||||||
log_error("Conversion aborted.");
|
log_error("Conversion aborted.");
|
||||||
return 0;
|
return 0;
|
||||||
@ -2839,7 +2839,7 @@ static int _lvconvert_to_pool(struct cmd_context *cmd,
|
|||||||
log_warn("THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)");
|
log_warn("THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)");
|
||||||
|
|
||||||
if (!lp->yes &&
|
if (!lp->yes &&
|
||||||
yes_no_prompt("Do you really want to convert \"%s/%s\"? [y|n]: ",
|
yes_no_prompt("Do you really want to convert \"%s/%s\"? [y/n]: ",
|
||||||
metadata_lv->vg->name, metadata_lv->name) == 'n') {
|
metadata_lv->vg->name, metadata_lv->name) == 'n') {
|
||||||
log_error("Conversion aborted.");
|
log_error("Conversion aborted.");
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user