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

cleanup: add missing log_error

log_error about no change in volume group with 'n' prompt answer.
(in-release fix)
This commit is contained in:
Zdenek Kabelac 2014-06-10 10:49:14 +02:00
parent 5e52a7788f
commit 9f9a196dc0

View File

@ -322,14 +322,18 @@ static int _vgchange_clustered(struct cmd_context *cmd,
if (yes_no_prompt("LVM cluster daemon (clvmd) is not"
" running.\n"
"Make volume group \"%s\" clustered"
" anyway? [y/n]: ", vg->name) == 'n')
" anyway? [y/n]: ", vg->name) == 'n') {
log_error("No volume groups changed.");
return 0;
}
} else if (!locking_is_clustered() &&
(yes_no_prompt("LVM locking type is not clustered.\n"
"Make volume group \"%s\" clustered"
" anyway? [y/n]: ", vg->name) == 'n'))
" anyway? [y/n]: ", vg->name) == 'n')) {
log_error("No volume groups changed.");
return 0;
}
}
if (!vg_set_clustered(vg, clustered))