mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvchange: support --yes option for --persistent
Support using command: lvchange --yes --persistent to skip y|n prompt.
This commit is contained in:
parent
bc7d3b74f1
commit
5f5a5d1f53
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.99 -
|
Version 2.02.99 -
|
||||||
===================================
|
===================================
|
||||||
|
Support use of option --yes for lvchange --persistent.
|
||||||
Fix memory leak on error path for pvcreate with invalid uuid.
|
Fix memory leak on error path for pvcreate with invalid uuid.
|
||||||
Use lv_is_active() instead of lv_info() call.
|
Use lv_is_active() instead of lv_info() call.
|
||||||
Cleanup some log_error message and use log_warn instead.
|
Cleanup some log_error message and use log_warn instead.
|
||||||
|
@ -660,6 +660,7 @@ static int lvchange_persistent(struct cmd_context *cmd,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (active && !arg_count(cmd, force_ARG) &&
|
if (active && !arg_count(cmd, force_ARG) &&
|
||||||
|
!arg_count(cmd, yes_ARG) &&
|
||||||
yes_no_prompt("Logical volume %s will be "
|
yes_no_prompt("Logical volume %s will be "
|
||||||
"deactivated temporarily. "
|
"deactivated temporarily. "
|
||||||
"Continue? [y/n]: ", lv->name) == 'n') {
|
"Continue? [y/n]: ", lv->name) == 'n') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user