1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV.

This commit is contained in:
Alasdair Kergon 2008-02-22 13:28:29 +00:00
parent 4c0f4125ec
commit 60be88a0a6
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.34 - Version 2.02.34 -
=================================== ===================================
Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV. (2.02.30)
Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30) 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. 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. Remove redundant non-NULL tests before calling free in clvmd.c.

View File

@ -504,6 +504,8 @@ static int _remove_mirror_images(struct logical_volume *lv,
* to remove the layer. */ * to remove the layer. */
if (new_area_count == 1 && !is_temporary_mirror_layer(lv)) { if (new_area_count == 1 && !is_temporary_mirror_layer(lv)) {
lv1 = seg_lv(mirrored_seg, 0); lv1 = seg_lv(mirrored_seg, 0);
lv1->status &= ~MIRROR_IMAGE;
lv1->status |= VISIBLE_LV;
detached_log_lv = detach_mirror_log(mirrored_seg); detached_log_lv = detach_mirror_log(mirrored_seg);
if (!remove_layer_from_lv(lv, lv1)) if (!remove_layer_from_lv(lv, lv1))
return_0; return_0;