1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix high-level free space check for partial allocations.

This commit is contained in:
Alasdair Kergon 2006-10-30 16:10:55 +00:00
parent 7d1c3fcd12
commit c89024511b
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.14 -
===================================
Fix high-level free space check for partial allocations.
Version 2.02.13 - 27th October 2006
===================================

View File

@ -894,10 +894,10 @@ static int _find_parallel_space(struct alloc_handle *ah, alloc_policy_t alloc,
/* Is there enough total space? */
free_pes = pv_maps_size(pvms);
if (needed > free_pes) {
if (needed - *allocated > free_pes) {
log_error("Insufficient free space: %" PRIu32 " extents needed,"
" but only %" PRIu32 " available", needed,
free_pes);
" but only %" PRIu32 " available",
needed - *allocated, free_pes);
return 0;
}