summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2010-05-26 13:22:36 -0700
committerDan Williams <dan.j.williams@intel.com>2010-05-26 13:22:36 -0700
commit97b4d0e971b20cea66b4a2dd04968cae79a3c2e6 (patch)
tree431f304f86a6f2b4cc89941b655506e99b29baa5 /mdadm.h
parent4460f8f7c344a0e8c8d454edcaf392e85912c76e (diff)
downloadmdadm-97b4d0e971b20cea66b4a2dd04968cae79a3c2e6.tar.gz
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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdadm.h b/mdadm.h
index d9d17b0..a0797e8 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -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;