diff options
author | Dave Jiang <dave.jiang@intel.com> | 2010-06-16 03:41:53 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-06-16 03:41:53 +0200 |
commit | 0bd16cf2173695726f1ed2f9372c613003d80f9a (patch) | |
tree | ab82b85b1e1dfebccbcbbef03f4ad917b6ba1d83 /mdadm.h | |
parent | mdmon: periodically checkpoint recovery (diff) | |
download | mdadm-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |