diff options
author | NeilBrown <neilb@suse.de> | 2015-04-08 01:20:26 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-04-08 01:20:26 +0200 |
commit | ee466574f204005ea311d3c66cc4de142e2a19d5 (patch) | |
tree | 2bb340e50096e669fb1ca1814ee4eedf4fa8bfd0 /Assemble.c | |
parent | Monitor: use the "space protocol" for "Wrong-Level". (diff) | |
download | mdadm-ee466574f204005ea311d3c66cc4de142e2a19d5.tar.xz mdadm-ee466574f204005ea311d3c66cc4de142e2a19d5.zip |
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>
Diffstat (limited to 'Assemble.c')
-rw-r--r-- | Assemble.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |