mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Shorten prompt for pvchange and vgextend.
This commit is contained in:
parent
96c3c4645f
commit
69e80c9eee
@ -124,10 +124,9 @@ static int _pvchange_single(struct cmd_context *cmd, struct volume_group *vg,
|
||||
} else if (arg_count(cmd, metadataignore_ARG)) {
|
||||
if ((vg_mda_copies(vg) != VGMETADATACOPIES_UNMANAGED) &&
|
||||
(arg_count(cmd, force_ARG) == PROMPT) &&
|
||||
yes_no_prompt("Setting metadataignore on %s will override "
|
||||
"preferred number of copies of VG %s "
|
||||
"metadata.\nAre you sure? [y/n]: ",
|
||||
pv_name, pv_vg_name(pv)) == 'n') {
|
||||
yes_no_prompt("Override preferred number of copies "
|
||||
"of VG %s metadata? [y/n]: ",
|
||||
pv_vg_name(pv)) == 'n') {
|
||||
log_error("Physical volume %s not changed", pv_name);
|
||||
goto out;
|
||||
}
|
||||
|
@ -62,9 +62,8 @@ int vgextend(struct cmd_context *cmd, int argc, char **argv)
|
||||
if (arg_count(cmd, metadataignore_ARG) &&
|
||||
(vg_mda_copies(vg) != VGMETADATACOPIES_UNMANAGED) &&
|
||||
(pp.force == PROMPT) &&
|
||||
yes_no_prompt("Setting metadataignore will override "
|
||||
"preferred number of copies of VG %s "
|
||||
"metadata.\nAre you sure? [y/n]: ",
|
||||
yes_no_prompt("Override preferred number of copies "
|
||||
"of VG %s metadata? [y/n]: ",
|
||||
vg_name) == 'n') {
|
||||
log_error("Volume group %s not changed", vg_name);
|
||||
goto_bad;
|
||||
|
Loading…
Reference in New Issue
Block a user