1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Ensure thin LVs take an exclusive activation

This commit is contained in:
Zdenek Kabelac 2011-10-22 16:47:23 +00:00
parent 493ea6330b
commit cf3d037c96

View File

@ -145,7 +145,10 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd,
stack;
continue;
}
} else if (lv_is_origin(lv) || (activate == CHANGE_AE)) {
} else if (lv_is_origin(lv) ||
lv_is_thin_pool(lv) ||
lv_is_thin_volume(lv) ||
(activate == CHANGE_AE)) {
if (!activate_lv_excl(cmd, lv)) {
stack;
continue;