]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Examine.c
Examine: don't count containers as spares
authorDan Williams <dan.j.williams@intel.com>
Tue, 15 Sep 2009 18:35:28 +0000 (11:35 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 15 Sep 2009 18:35:28 +0000 (11:35 -0700)
commited57a7e8ba06237dc6f4a8f581d12353158ce798
tree8a4119cc37b32f879af9ee1d84fedc28e63ff5e3
parent436305c6905f81735eb04e9ef6577c21358836e8
Examine: don't count containers as spares

mdadm -Ebs will include containers in the scanned device list.
Examine() falsely thinks they are spares when MD_DISK_SYNC is not set.
This could be fixed by forcing all formats to set this flag for
container devices, but this flag is currently used by imsm to identify
free-floating spares.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Examine.c