mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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)
|
if (!first)
|
||||||
first = pes;
|
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++;
|
count++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user