diff options
author | NeilBrown <neilb@suse.de> | 2009-11-17 12:30:54 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-11-17 12:30:54 +1100 |
commit | f22385f9826bcf35c8055c3b89b731f5760a46c5 (patch) | |
tree | 7fab61d87c2b2bbe8aaad4e642b8c083999ff094 /super1.c | |
parent | 14e5b4d72b4db55e688581d98ec47131554f747c (diff) | |
download | mdadm-f22385f9826bcf35c8055c3b89b731f5760a46c5.tar.gz mdadm-f22385f9826bcf35c8055c3b89b731f5760a46c5.tar.xz mdadm-f22385f9826bcf35c8055c3b89b731f5760a46c5.zip |
Assemble: include ACTIVE but not in-sync devices as non-spares.
Previously such things did not exist: ACTIVE and SYNC were either both
set or both clear. Recent changes with reshape means that a device
can be ACTIVE but not yet fully in-sync, so they need to be handled
and included in the array as active devices.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r-- | super1.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -594,7 +594,7 @@ static void getinfo_super1(struct supertype *st, struct mdinfo *info) info->disk.raid_disk = -1; switch(role) { case 0xFFFF: - info->disk.state = 2; /* spare: ACTIVE, not sync, not faulty */ + info->disk.state = 0; /* spare: not active, not sync, not faulty */ break; case 0xFFFE: info->disk.state = 1; /* faulty */ |