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

Add missing no-longer-used segs_using_this_lv test to check_lv_segments.

This commit is contained in:
Alasdair Kergon 2008-02-22 13:22:21 +00:00
parent 448ef456ff
commit 39d3ec0b51
2 changed files with 11 additions and 7 deletions

View File

@ -1,17 +1,18 @@
Version 2.02.34 - Version 2.02.34 -
=================================== ===================================
Remove redundant if-before-free tests in clvmd.c. Add missing no-longer-used segs_using_this_lv test to check_lv_segments.
Avoid a compiler warning: make is_orphan's parameter "const". Remove redundant non-NULL tests before calling free in clvmd.c.
Avoid a compiler warning: make is_orphan's parameter const.
Fix lvconvert detection of mirror conversion in progress. (2.02.30) Fix lvconvert detection of mirror conversion in progress. (2.02.30)
Avoid automatic lvconvert polldaemon invocation when -R specified. (2.02.30) Avoid automatic lvconvert polldaemon invocation when -R specified. (2.02.30)
Fix 'pvs -a' to detect VGs of PVs without metadata areas. Fix 'pvs -a' to detect VGs of PVs without metadata areas.
Divide up internal orphan volume group by format type. Divide up internal orphan volume group by format type.
Update usage message for clvmd. Update usage message for clvmd.
Fix clvmd man page printing <br>, clarified debug options. Fix clvmd man page not to print <br> and clarified debug options.
Fix lvresize to support /dev/mapper prefix in the lvname Fix lvresize to support /dev/mapper prefix in the LV name.
Fix unfilled paramater passed to fsadm from lvresize Fix unfilled parameter passed to fsadm from lvresize.
Update fsadm to call lvresize if the partition size differs (with option -l) Update fsadm to call lvresize if the partition size differs (with option -l).
Fix fsadm to support vg/lv name (like the rest of lv-tools) Fix fsadm to support VG/LV names.
Version 2.02.33 - 31st January 2008 Version 2.02.33 - 31st January 2008
=================================== ===================================

View File

@ -2308,6 +2308,9 @@ int remove_layer_from_lv(struct logical_volume *lv,
parent->le_count != layer_lv->le_count) parent->le_count != layer_lv->le_count)
return_0; return_0;
if (!lv_empty(parent))
return_0;
if (!_move_lv_segments(parent, layer_lv, 0, 0)) if (!_move_lv_segments(parent, layer_lv, 0, 0))
return_0; return_0;