diff options
author | Dan Williams <dan.j.williams@intel.com> | 2010-05-26 22:22:36 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-05-26 22:22:36 +0200 |
commit | 97b4d0e971b20cea66b4a2dd04968cae79a3c2e6 (patch) | |
tree | 431f304f86a6f2b4cc89941b655506e99b29baa5 /mdadm.h | |
parent | Monitor: don't report the disappearance of a faulty device as SpareActive. (diff) | |
download | mdadm-97b4d0e971b20cea66b4a2dd04968cae79a3c2e6.tar.xz mdadm-97b4d0e971b20cea66b4a2dd04968cae79a3c2e6.zip |
Incremental: honor an 'enough' flag from external handlers
This is needed for imsm where:
1/ we want to report raid_disks as zero to allow mdadm -As to
incorporate all spares
2/ we can't determine stale disks by looking at the event counts.
3/ we can't see per-subarray expectations with the info returned from
the container level ->getinfo_super()
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -205,7 +205,9 @@ struct mdinfo { int container_member; /* for assembling external-metatdata arrays * This is to be used internally by metadata * handler only */ - + int container_enough; /* flag external handlers can set to + * indicate that subarrays have not enough (-1), + * enough to start (0), or all expected disks (1) */ char sys_name[20]; struct mdinfo *devs; struct mdinfo *next; |