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:
parent
9194610f42
commit
2ee105089a
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user