1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix two check_lv_segments error messages to show whole segment.

This commit is contained in:
Alasdair Kergon 2008-01-26 00:30:28 +00:00
parent eb63c265db
commit 5dc6c0de80
2 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.32 -
===================================
Fix two check_lv_segments error messages to show whole segment.
Refactor mirror log attachment code.
Fix internal metadata corruption in lvchange --resync. (2.02.30)
Fix new parameter validation in vgsplit and test mode. (2.02.30)

View File

@ -210,17 +210,18 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg)
if (seg->log_lv == lv)
seg_found++;
if (!seg_found) {
log_error("LV %s is used by LV %s:%" PRIu32 ", "
"but missing ptr from %s to %s",
log_error("LV %s is used by LV %s:%" PRIu32 "-%" PRIu32
", but missing ptr from %s to %s",
lv->name, seg->lv->name, seg->le,
seg->le + seg->len - 1,
seg->lv->name, lv->name);
r = 0;
} else if (seg_found != sl->count) {
log_error("Reference count mismatch: LV %s has %d "
"links to LV %s:%" PRIu32
"links to LV %s:%" PRIu32 "-%" PRIu32
", which has %d links",
lv->name, sl->count,
seg->lv->name, seg->le, seg_found);
lv->name, sl->count, seg->lv->name, seg->le,
seg->le + seg->len - 1, seg_found);
r = 0;
}
}