1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

Fix misleading error message when there is no allocatable extents in VG.

This commit is contained in:
Milan Broz 2008-09-29 09:59:10 +00:00
parent 061fa9c4c5
commit 9352a2fdad
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View 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.");