diff options
author | NeilBrown <neilb@suse.com> | 2015-12-21 12:57:06 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-12-21 12:57:06 +1100 |
commit | 9da5a4897d392b4489689f548ea2b865e6f4b6e2 (patch) | |
tree | 24c127b7c4a63f3f32b3f2e4f2841ba15e75823f /Detail.c | |
parent | 78a5dc039b9344762b8f7cde2d159b482993eb2d (diff) | |
parent | cd04f56212a1640f02fe4567586e2a02a7888e0c (diff) | |
download | mdadm-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.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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) |