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 <neilb@suse.de>
This commit is contained in:
NeilBrown 2015-04-08 09:20:26 +10:00
parent 04e27c2084
commit ee466574f2
1 changed files with 1 additions and 1 deletions

View File

@ -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) {