diff options
author | NeilBrown <neilb@suse.de> | 2012-10-24 12:06:51 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-24 12:06:51 +1100 |
commit | 72e7fb13f0154eb59941cfbe69e75c830bde4441 (patch) | |
tree | 8b24c3bd2c4eb2c3d05c318292d125fc46723eb6 /super1.c | |
parent | aacb2f816afbddf56c406039b8e2e6c0dbc8a8a0 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |