mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
raid: lock holder will skip visible raid LVs
RAID marks legs as VISIBLE with notion it's not longer true raid leg - so skip tree scannig and take this LV as top-level LV.
This commit is contained in:
parent
93b9015760
commit
553f37da71
@ -1018,6 +1018,10 @@ const struct logical_volume *lv_lock_holder(const struct logical_volume *lv)
|
||||
return sl->seg->lv;
|
||||
}
|
||||
|
||||
/* RAID changes visibility of splitted LVs but references them still as leg/meta */
|
||||
if ((lv_is_raid_image(lv) || lv_is_raid_metadata(lv)) && lv_is_visible(lv))
|
||||
return lv;
|
||||
|
||||
/* For other types, by default look for the first user */
|
||||
dm_list_iterate_items(sl, &lv->segs_using_this_lv) {
|
||||
/* FIXME: complete this exception list */
|
||||
|
Loading…
x
Reference in New Issue
Block a user