]> sourceware.org Git - lvm2.git/commitdiff
Fix misleading error message when there is no allocatable extents in VG.
authorMilan Broz <mbroz@redhat.com>
Mon, 29 Sep 2008 09:59:10 +0000 (09:59 +0000)
committerMilan Broz <mbroz@redhat.com>
Mon, 29 Sep 2008 09:59:10 +0000 (09:59 +0000)
WHATS_NEW
lib/metadata/lv_manip.c

index 2b18787962a635a663001d634be483de91fa3b8a..3b46bc9ffe086358e9a9b6cb981450b90e85de72 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.41 -
 =====================================
+  Fix misleading error message when there is no allocatable extents in VG.
   Fix handling of PVs which reappeared with old metadata version.
   Fix mirror DSO to call vgreduce with proper parameters.
   Fix validation of --minor and --major in lvcreate to require -My always.
index c9d707c9c5e5be1fc217b853567cd66f20c26a3c..7724e48479675f463b5d61231c41841a41e3582a 100644 (file)
@@ -1169,7 +1169,7 @@ static int _allocate(struct alloc_handle *ah,
                stack;
 
        areas_size = list_size(pvms);
-       if (areas_size < ah->area_count + ah->log_count) {
+       if (areas_size && areas_size < (ah->area_count + ah->log_count)) {
                if (ah->alloc != ALLOC_ANYWHERE) {
                        log_error("Not enough PVs with free space available "
                                  "for parallel allocation.");
This page took 0.050701 seconds and 5 git commands to generate.