From 37ef162cda1aa8234f13da456c584b25f2ced936 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Mon, 29 Sep 2008 09:59:10 +0000 Subject: [PATCH] Fix misleading error message when there is no allocatable extents in VG. --- WHATS_NEW | 1 + lib/metadata/lv_manip.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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."); -- 2.43.5