diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-04-12 09:58:28 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-04-12 09:58:28 +0200 |
commit | da9b4a62af80edbbcc96196ab5d887308516ba70 (patch) | |
tree | 374cdc6439e4a59161fc2739e752e4ef6ab50248 /super-ddf.c | |
parent | imsm: turn off curr_migr_unit updates (diff) | |
download | mdadm-da9b4a62af80edbbcc96196ab5d887308516ba70.tar.xz mdadm-da9b4a62af80edbbcc96196ab5d887308516ba70.zip |
imsm: set array size at Create/Assemble
imsm arrays round down the effective array size to the closest 1
megabyte boundary so teach get_info_super_imsm and sysfs_set_array to
set 'md/array_size' if available (and make sure ddf uses the default
size).
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/super-ddf.c b/super-ddf.c index 6455deee..6a870556 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1374,6 +1374,7 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info) __be32_to_cpu(*(__u32*)(vc->conf.guid+16)); info->array.utime = DECADE + __be32_to_cpu(vc->conf.timestamp); info->array.chunk_size = 512 << vc->conf.chunk_shift; + info->custom_array_size = 0; if (cd >= 0 && cd < ddf->mppe) { info->data_offset = __be64_to_cpu(vc->lba_offset[cd]); |