From 72e7fb13f0154eb59941cfbe69e75c830bde4441 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 24 Oct 2012 12:06:51 +1100 Subject: Incremental: support replacement devices. These need to be counted in the number of 'active' devices. Signed-off-by: NeilBrown --- super1.c | 1 + 1 file changed, 1 insertion(+) (limited to 'super1.c') 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; } -- cgit v1.2.3