summaryrefslogtreecommitdiff
path: root/Detail.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2015-12-21 12:57:06 +1100
committerNeilBrown <neilb@suse.com>2015-12-21 12:57:06 +1100
commit9da5a4897d392b4489689f548ea2b865e6f4b6e2 (patch)
tree24c127b7c4a63f3f32b3f2e4f2841ba15e75823f /Detail.c
parent78a5dc039b9344762b8f7cde2d159b482993eb2d (diff)
parentcd04f56212a1640f02fe4567586e2a02a7888e0c (diff)
downloadmdadm-9da5a4897d392b4489689f548ea2b865e6f4b6e2.tar.gz
Merge https://github.com/makelinux/mdadm
Fixes https://github.com/neilbrown/mdadm/issues/17
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Detail.c b/Detail.c
index ef2aabd..5bd2dc6 100644
--- a/Detail.c
+++ b/Detail.c
@@ -340,7 +340,8 @@ int Detail(char *dev, struct context *c)
(disks[d*2+1].state & (1<<MD_DISK_SYNC))) {
avail_disks ++;
avail[d] = 1;
- }
+ } else
+ rv |= !! c->test;
}
if (c->brief) {
@@ -676,9 +677,6 @@ This is pretty boring
}
}
if (disk.state == 0) spares++;
- if (c->test && d < array.raid_disks
- && !(disk.state & (1<<MD_DISK_SYNC)))
- rv |= 1;
dv=map_dev_preferred(disk.major, disk.minor, 0, c->prefer);
if (dv != NULL) {
if (c->brief)