summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-12-14 17:31:16 +1100
committerNeil Brown <neilb@suse.de>2006-12-14 17:31:16 +1100
commit758d3a8e7d3e0620d68d3b9e72ef0747319c6dac (patch)
tree313ba9725ec6165b42ffdfda6353f62c289de057 /mdadm.h
parent583315d9c522c310c89d5640ae884ef7984b9c30 (diff)
downloadmdadm-758d3a8e7d3e0620d68d3b9e72ef0747319c6dac.tar.gz
mdadm-758d3a8e7d3e0620d68d3b9e72ef0747319c6dac.tar.xz
mdadm-758d3a8e7d3e0620d68d3b9e72ef0747319c6dac.zip
Increase raid456 stripe cache size if needed to --grow the array.
The setting used unfortunately requires intimate knowledge of the kernel, and it not reset when the reshape finishes.
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 1976dd1..bfc2138 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -257,12 +257,14 @@ struct sysarray {
int layout;
int level;
int spares;
+ int cache_size;
};
/* various details can be requested */
#define GET_LEVEL 1
#define GET_LAYOUT 2
#define GET_COMPONENT 4
#define GET_CHUNK 8
+#define GET_CACHE 16
#define GET_DEVS 1024 /* gets role, major, minor */
#define GET_OFFSET 2048