1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Fix lv_empty.

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

View File

@ -1,5 +1,6 @@
Version 2.02.02
====================================
Fix lv_empty.
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)
{
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)
{
return _lv_reduce(lv, extents, 1);