From ee466574f204005ea311d3c66cc4de142e2a19d5 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 8 Apr 2015 09:20:26 +1000 Subject: [PATCH] Assemble: fix "no uptodate device" message. Since we introduced replacement devices, the 'i' used in start_array() is twice the slot number. So we need to adjust when printing. Signed-off-by: NeilBrown --- Assemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assemble.c b/Assemble.c index 1e529c1..08d9d1b 100644 --- a/Assemble.c +++ b/Assemble.c @@ -984,7 +984,7 @@ static int start_array(int mdfd, } else if (c->verbose > 0 && i < content->array.raid_disks*2 && (i&1) == 0) pr_err("no uptodate device for slot %d of %s\n", - i, mddev); + i/2, mddev); } if (content->array.level == LEVEL_CONTAINER) {