mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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) {
|
dm_list_iterate_items(seg, &lv->segments) {
|
||||||
seg_count++;
|
seg_count++;
|
||||||
|
|
||||||
if (seg_is_raid(seg))
|
if (complete_vg && seg_is_raid(seg))
|
||||||
_check_raid_seg(seg, &error_count);
|
_check_raid_seg(seg, &error_count);
|
||||||
|
|
||||||
if (seg->le != le) {
|
if (seg->le != le) {
|
||||||
|
Loading…
Reference in New Issue
Block a user