summaryrefslogtreecommitdiff
path: root/super1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-24 12:06:51 +1100
committerNeilBrown <neilb@suse.de>2012-10-24 12:06:51 +1100
commit72e7fb13f0154eb59941cfbe69e75c830bde4441 (patch)
tree8b24c3bd2c4eb2c3d05c318292d125fc46723eb6 /super1.c
parentaacb2f816afbddf56c406039b8e2e6c0dbc8a8a0 (diff)
Incremental: support replacement devices.
These need to be counted in the number of 'active' devices. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/super1.c b/super1.c
index 54e935a4..5bb1f014 100644
--- a/super1.c
+++ b/super1.c
@@ -767,6 +767,7 @@ static void getinfo_super1(struct supertype *st, struct mdinfo *info, char *map)
info->name[32] = 0;
if ((__le32_to_cpu(sb->feature_map)&MD_FEATURE_REPLACEMENT)) {
+ info->disk.state &= ~(1 << MD_DISK_SYNC);
info->disk.state |= 1 << MD_DISK_REPLACEMENT;
}