]> sourceware.org Git - lvm2.git/commitdiff
Fix lv_empty.
authorAlasdair Kergon <agk@redhat.com>
Thu, 24 Nov 2005 18:46:51 +0000 (18:46 +0000)
committerAlasdair Kergon <agk@redhat.com>
Thu, 24 Nov 2005 18:46:51 +0000 (18:46 +0000)
WHATS_NEW
lib/metadata/lv_manip.c

index 32e998dddaa4b5cf81de902710d1e89b8806df04..d7904d8bbb58f3df9de83277a4d3dfa3b24a29c1 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.02
 ====================================
+  Fix lv_empty.
 
 Version 2.02.01 - 23rd November 2005
 ====================================
index dcf1f26274bdbd10cd0a5aff40e7f042c7fea399..b6be839c80199a94516fadd78151d577f87936e1 100644 (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);
This page took 0.040951 seconds and 5 git commands to generate.