mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
lvmlockd: vgchange locktype with yes option
for auto response to yes/no prompt.
This commit is contained in:
parent
88ae03c38f
commit
2c1e9d4956
@ -1045,7 +1045,8 @@ int vgchange_locktype_cmd(struct cmd_context *cmd, int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (yes_no_prompt("Forcibly change VG lock type to none? [y/n]: ") == 'n') {
|
||||
if (!arg_is_set(cmd, yes_ARG) &&
|
||||
yes_no_prompt("Forcibly change VG lock type to none? [y/n]: ") == 'n') {
|
||||
log_error("VG lock type not changed.");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user