mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-25 10:04:17 +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;
|
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.");
|
log_error("VG lock type not changed.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user