1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-11 09:18:25 +03:00

Improve vg_validate to detect some loops in lists.

This commit is contained in:
Alasdair Kergon 2010-04-01 11:45:36 +00:00
parent 235ca704b1
commit 1e01a63685

View File

@ -2253,6 +2253,12 @@ int vg_validate(struct volume_group *vg)
}
}
if (!check_lv_segments(lvl->lv, 0)) {
log_error(INTERNAL_ERROR "LV segments corrupted in %s.",
lvl->lv->name);
r = 0;
}
if (!check_lv_segments(lvl->lv, 1)) {
log_error(INTERNAL_ERROR "LV segments corrupted in %s.",
lvl->lv->name);