mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
validation: check external property is matching
Detect if number of external_count is matching referencing devices for external_origin LV.
This commit is contained in:
parent
7db46c4a39
commit
36f609e513
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.169 -
|
Version 2.02.169 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Extend metadata validation of external origin LV use count.
|
||||||
Fix dm table when the last user of active external origin is removed.
|
Fix dm table when the last user of active external origin is removed.
|
||||||
Improve reported lvs status for active external origin volume.
|
Improve reported lvs status for active external origin volume.
|
||||||
Fix table load for splitted RAID LV and require explicit activation.
|
Fix table load for splitted RAID LV and require explicit activation.
|
||||||
|
@ -398,6 +398,18 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg)
|
|||||||
inc_error_count;
|
inc_error_count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lv_is_external_origin(lv)) {
|
||||||
|
seg_found = 0;
|
||||||
|
dm_list_iterate_items(sl, &lv->segs_using_this_lv)
|
||||||
|
if (sl->seg->external_lv == lv)
|
||||||
|
seg_found++;
|
||||||
|
if (seg_found != lv->external_count) {
|
||||||
|
log_error("LV %s: external origin count does not match.",
|
||||||
|
lv->name);
|
||||||
|
inc_error_count;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dm_list_iterate_items(seg, &lv->segments) {
|
dm_list_iterate_items(seg, &lv->segments) {
|
||||||
|
Loading…
Reference in New Issue
Block a user