From a7af42f14c4c0dfff5870cf2f32cf2fe768eccfd Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 19 Nov 2001 15:44:06 +0000 Subject: [PATCH] o _emit_target wasn't spotting contiguous targets properly. --- lib/activate/activate.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/activate/activate.c b/lib/activate/activate.c index b220773e5..2837446d7 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -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++; } -- 2.43.5