mirror of
git://sourceware.org/git/lvm2.git
synced 2025-09-07 09:44:20 +03:00
vgchange: With '--yes', don't prompt the user
If the user supplies a '--yes' argument, then don't bother them with a question to confirm whether to change the cluster attribute (even if clvmd isn't running).
This commit is contained in:
@@ -317,7 +317,7 @@ static int _vgchange_clustered(struct cmd_context *cmd,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clustered) {
|
if (clustered && !arg_count(cmd, yes_ARG)) {
|
||||||
if (!dm_daemon_is_running(CLVMD_PIDFILE)) {
|
if (!dm_daemon_is_running(CLVMD_PIDFILE)) {
|
||||||
if (yes_no_prompt("LVM cluster daemon (clvmd) is not"
|
if (yes_no_prompt("LVM cluster daemon (clvmd) is not"
|
||||||
" running.\n"
|
" running.\n"
|
||||||
|
Reference in New Issue
Block a user