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

Fix lv_empty.

This commit is contained in:
Alasdair Kergon 2005-11-24 18:46:51 +00:00
parent c00f802202
commit 2fb492f665
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.02 Version 2.02.02
==================================== ====================================
Fix lv_empty.
Version 2.02.01 - 23rd November 2005 Version 2.02.01 - 23rd November 2005
==================================== ====================================

View File

@ -346,9 +346,12 @@ static int _lv_reduce(struct logical_volume *lv, uint32_t extents, int delete)
*/ */
int lv_empty(struct logical_volume *lv) int lv_empty(struct logical_volume *lv)
{ {
return _lv_reduce(lv, 0, lv->le_count); return _lv_reduce(lv, lv->le_count, 0);
} }
/*
* Remove given number of extents from LV
*/
int lv_reduce(struct logical_volume *lv, uint32_t extents) int lv_reduce(struct logical_volume *lv, uint32_t extents)
{ {
return _lv_reduce(lv, extents, 1); return _lv_reduce(lv, extents, 1);