From: Milan Broz Date: Mon, 29 Sep 2008 09:59:10 +0000 (+0000) Subject: Fix misleading error message when there is no allocatable extents in VG. X-Git-Tag: old-v2_02_41~32 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=37ef162cda1aa8234f13da456c584b25f2ced936;p=lvm2.git Fix misleading error message when there is no allocatable extents in VG. --- diff --git a/WHATS_NEW b/WHATS_NEW index 2b1878796..3b46bc9ff 100644 --- 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. diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index c9d707c9c..7724e4847 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -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.");