From: NeilBrown Date: Tue, 7 Apr 2015 23:20:26 +0000 (+1000) Subject: Assemble: fix "no uptodate device" message. X-Git-Tag: mdadm-3.3.3~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee466574f204005ea311d3c66cc4de142e2a19d5;p=thirdparty%2Fmdadm.git 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 --- diff --git a/Assemble.c b/Assemble.c index 1e529c1b..08d9d1b9 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) {