mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
raid: test for target_pvs
If target_pvs is NULL do not call lv_is_on_pvs()
This commit is contained in:
parent
9e24d563c6
commit
24f8daa13d
@ -934,7 +934,7 @@ static int _raid_extract_images(struct logical_volume *lv, uint32_t new_count,
|
||||
seg_metalv(seg, s)->name, seg_lv(seg, s)->name);
|
||||
} else {
|
||||
/* Conditions for second pass */
|
||||
if (!lv_is_on_pvs(seg_lv(seg, s), target_pvs) ||
|
||||
if (!target_pvs || !lv_is_on_pvs(seg_lv(seg, s), target_pvs) ||
|
||||
!lv_is_on_pvs(seg_metalv(seg, s), target_pvs))
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user