mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
vg_validate: new RAID segment checks in check_lv_segments()
introduced with commit 8f62b7bfe5
rely on complete
defintions of the relations between the LVs of a VG.
Hence only run these checks when the complete_vg flag
is set on calls to check_lv_segments().
lvconvert failed in test lvconvert-thin-raid.sh when
calling check_lv_segments() from _read_segments() without
providing a complete definition.
This commit is contained in:
parent
c490be9134
commit
5765a28456
@ -391,7 +391,7 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg)
|
||||
dm_list_iterate_items(seg, &lv->segments) {
|
||||
seg_count++;
|
||||
|
||||
if (seg_is_raid(seg))
|
||||
if (complete_vg && seg_is_raid(seg))
|
||||
_check_raid_seg(seg, &error_count);
|
||||
|
||||
if (seg->le != le) {
|
||||
|
Loading…
Reference in New Issue
Block a user