mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
o _emit_target wasn't spotting contiguous targets properly.
This commit is contained in:
parent
ef8a0eae5c
commit
a7af42f14c
@ -104,8 +104,12 @@ static int _emit_target(struct dm_task *dmt, struct logical_volume *lv,
|
||||
if (!first)
|
||||
first = pes;
|
||||
|
||||
else if (first->pv != pes->pv || first->pe != pes->pe + 1)
|
||||
break; /* no longer contig. */
|
||||
/*
|
||||
* check that we're still contiguous.
|
||||
*/
|
||||
else if ((pes->pv != first->pv) ||
|
||||
(pes->pe != first->pe + count))
|
||||
break;
|
||||
|
||||
count++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user