1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvchange: support --yes option for --persistent

Support using command: lvchange --yes --persistent
to skip y|n prompt.
This commit is contained in:
Zdenek Kabelac 2012-10-19 14:16:15 +02:00
parent bc7d3b74f1
commit 5f5a5d1f53
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.99 -
===================================
Support use of option --yes for lvchange --persistent.
Fix memory leak on error path for pvcreate with invalid uuid.
Use lv_is_active() instead of lv_info() call.
Cleanup some log_error message and use log_warn instead.

View File

@ -660,6 +660,7 @@ static int lvchange_persistent(struct cmd_context *cmd,
return 0;
if (active && !arg_count(cmd, force_ARG) &&
!arg_count(cmd, yes_ARG) &&
yes_no_prompt("Logical volume %s will be "
"deactivated temporarily. "
"Continue? [y/n]: ", lv->name) == 'n') {