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

python: some LVs do need exclusive activation

This commit is contained in:
Zdenek Kabelac 2018-01-22 11:39:05 +01:00
parent 9194610f42
commit 2ee105089a

View File

@ -304,7 +304,9 @@ static int _lvm_lv_activate(lv_t lv)
return -1;
}
if (lv_is_origin(lv)) {
if (lv_is_origin(lv) ||
lv_is_pvmove(lv) ||
seg_only_exclusive(first_seg(lv))) {
log_verbose("Activating logical volume \"%s\" "
"exclusively", lv->name);
if (!activate_lv_excl(lv->vg->cmd, lv)) {