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:
parent
7d1c3fcd12
commit
c89024511b
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.14 -
|
Version 2.02.14 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix high-level free space check for partial allocations.
|
||||||
|
|
||||||
Version 2.02.13 - 27th October 2006
|
Version 2.02.13 - 27th October 2006
|
||||||
===================================
|
===================================
|
||||||
|
@ -894,10 +894,10 @@ static int _find_parallel_space(struct alloc_handle *ah, alloc_policy_t alloc,
|
|||||||
|
|
||||||
/* Is there enough total space? */
|
/* Is there enough total space? */
|
||||||
free_pes = pv_maps_size(pvms);
|
free_pes = pv_maps_size(pvms);
|
||||||
if (needed > free_pes) {
|
if (needed - *allocated > free_pes) {
|
||||||
log_error("Insufficient free space: %" PRIu32 " extents needed,"
|
log_error("Insufficient free space: %" PRIu32 " extents needed,"
|
||||||
" but only %" PRIu32 " available", needed,
|
" but only %" PRIu32 " available",
|
||||||
free_pes);
|
needed - *allocated, free_pes);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user