mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Fix contiguous allocation without preceding segments.
This commit is contained in:
parent
e6c20c6100
commit
d31718600b
@ -666,12 +666,10 @@ static int _find_parallel_space(struct alloc_handle *ah, alloc_policy_t alloc,
|
||||
/* FIXME Do calculations on free extent counts before selecting space */
|
||||
/* FIXME Select log PV appropriately if there isn't one yet */
|
||||
|
||||
if ((alloc == ALLOC_CONTIGUOUS)) {
|
||||
/* Are there any preceding segments we must follow on from? */
|
||||
if ((alloc == ALLOC_CONTIGUOUS) && prev_lvseg) {
|
||||
contiguous = 1;
|
||||
if (prev_lvseg)
|
||||
ix_offset = prev_lvseg->area_count;
|
||||
else
|
||||
ix_offset = ah->area_count;
|
||||
}
|
||||
|
||||
/* FIXME This algorithm needs a lot of cleaning up! */
|
||||
|
Loading…
Reference in New Issue
Block a user