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:
parent
c00f802202
commit
2fb492f665
@ -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
|
||||||
====================================
|
====================================
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user