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:
parent
93bbb79569
commit
292f665650
@ -1,5 +1,6 @@
|
||||
Version 2.02.02
|
||||
====================================
|
||||
Fix lv_empty.
|
||||
|
||||
Version 2.02.01 - 23rd November 2005
|
||||
====================================
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user