mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30)
This commit is contained in:
parent
39d3ec0b51
commit
4c0f4125ec
@ -1,5 +1,6 @@
|
||||
Version 2.02.34 -
|
||||
===================================
|
||||
Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30)
|
||||
Add missing no-longer-used segs_using_this_lv test to check_lv_segments.
|
||||
Remove redundant non-NULL tests before calling free in clvmd.c.
|
||||
Avoid a compiler warning: make is_orphan's parameter const.
|
||||
|
@ -224,6 +224,20 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg)
|
||||
seg->le + seg->len - 1, seg_found);
|
||||
r = 0;
|
||||
}
|
||||
|
||||
seg_found = 0;
|
||||
list_iterate_items(seg2, &seg->lv->segments)
|
||||
if (sl->seg == seg2) {
|
||||
seg_found++;
|
||||
break;
|
||||
}
|
||||
if (!seg_found) {
|
||||
log_error("LV segment %s:%" PRIu32 "-%" PRIu32
|
||||
"is incorrectly listed as being used by LV %s",
|
||||
seg->lv->name, seg->le, seg->le + seg->len - 1,
|
||||
lv->name);
|
||||
r = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (le != lv->le_count) {
|
||||
|
Loading…
Reference in New Issue
Block a user