1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00

o _emit_target wasn't spotting contiguous targets properly.

This commit is contained in:
Joe Thornber 2001-11-19 15:44:06 +00:00
parent ef8a0eae5c
commit a7af42f14c

View File

@ -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++;
}