summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-04-08 01:20:26 +0200
committerNeilBrown <neilb@suse.de>2015-04-08 01:20:26 +0200
commitee466574f204005ea311d3c66cc4de142e2a19d5 (patch)
tree2bb340e50096e669fb1ca1814ee4eedf4fa8bfd0 /Assemble.c
parentMonitor: use the "space protocol" for "Wrong-Level". (diff)
downloadmdadm-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.c2
1 files changed, 1 insertions, 1 deletions
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) {