summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2010-06-16 03:41:53 +0200
committerDan Williams <dan.j.williams@intel.com>2010-06-16 03:41:53 +0200
commit0bd16cf2173695726f1ed2f9372c613003d80f9a (patch)
treeab82b85b1e1dfebccbcbbef03f4ad917b6ba1d83 /mdadm.h
parentmdmon: periodically checkpoint recovery (diff)
downloadmdadm-0bd16cf2173695726f1ed2f9372c613003d80f9a.tar.xz
mdadm-0bd16cf2173695726f1ed2f9372c613003d80f9a.zip
create: Check with OROM limit before setting default chunk size
Make create check with the appropriate meta data handler and see what the largest chunk size is supported. The current 512K default is not supported by existing imsm OROM. [dan.j.williams@intel.com: trim the upper limit to 512k for future oroms] Signed-off-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
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 1bf5ac0a..142868ad 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -609,6 +609,8 @@ extern struct superswitch {
struct mdinfo *(*container_content)(struct supertype *st);
/* Allow a metadata handler to override mdadm's default layouts */
int (*default_layout)(int level); /* optional */
+ /* query the supertype for default chunk size */
+ int (*default_chunk)(struct supertype *st); /* optional */
/* for mdmon */
int (*open_new)(struct supertype *c, struct active_array *a,