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

lvconvert: disallow test mode in shared VG

until test mode can be checked in all the necessary
locations related to lvmlockd to prevent making
actual changes.
This commit is contained in:
David Teigland 2016-01-18 16:53:14 -06:00
parent 6b3e402298
commit 48f270970f

View File

@ -3434,6 +3434,13 @@ static int lvconvert_single(struct cmd_context *cmd, struct lvconvert_params *lp
goto_out;
}
if (test_mode() && is_lockd_type(vg->lock_type)) {
log_error("Test mode is not yet supported with lock type %s",
vg->lock_type);
unlock_and_release_vg(cmd, vg, lp->vg_name);
goto_out;
}
if (!(lv = find_lv(vg, lp->lv_name))) {
log_error("Can't find LV %s in VG %s", lp->lv_name, lp->vg_name);
unlock_and_release_vg(cmd, vg, lp->vg_name);