summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-12-14 17:31:25 +1100
committerNeil Brown <neilb@suse.de>2006-12-14 17:31:25 +1100
commit37dfc3d638aee1fe3ae6d6b4aa0e648e1a9d61ca (patch)
tree76f3fab53edd53f03fa76149c78ab3451cf7f449 /mdadm.h
parentb90c0e9a12090c435f23da8378b3436c93f77f2f (diff)
downloadmdadm-37dfc3d638aee1fe3ae6d6b4aa0e648e1a9d61ca.tar.gz
mdadm-37dfc3d638aee1fe3ae6d6b4aa0e648e1a9d61ca.tar.xz
mdadm-37dfc3d638aee1fe3ae6d6b4aa0e648e1a9d61ca.zip
When resync finished, report the mismatch count if there is one.
This doesn't get mailed out, but will appear in syslog... Maybe it should be mailed if it was a 'check' or 'repair' pass...
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index f1768a5..f6350e1 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -258,6 +258,7 @@ struct sysarray {
int level;
int spares;
int cache_size;
+ int mismatch_cnt;
};
/* various details can be requested */
#define GET_LEVEL 1
@@ -265,6 +266,7 @@ struct sysarray {
#define GET_COMPONENT 4
#define GET_CHUNK 8
#define GET_CACHE 16
+#define GET_MISMATCH 32
#define GET_DEVS 1024 /* gets role, major, minor */
#define GET_OFFSET 2048