diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-04-12 00:58:28 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-04-12 00:58:28 -0700 |
commit | da9b4a62af80edbbcc96196ab5d887308516ba70 (patch) | |
tree | 374cdc6439e4a59161fc2739e752e4ef6ab50248 /super-intel.c | |
parent | da1887895404506708387fa3781bf0df0a2664ff (diff) |
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-intel.c')
-rw-r--r-- | super-intel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/super-intel.c b/super-intel.c index 3befc3d0..b41ab3b1 100644 --- a/super-intel.c +++ b/super-intel.c @@ -1203,6 +1203,9 @@ static void getinfo_super_imsm_volume(struct supertype *st, struct mdinfo *info) info->array.utime = 0; info->array.chunk_size = __le16_to_cpu(map->blocks_per_strip) << 9; info->array.state = !dev->vol.dirty; + info->custom_array_size = __le32_to_cpu(dev->size_high); + info->custom_array_size <<= 32; + info->custom_array_size |= __le32_to_cpu(dev->size_low); info->disk.major = 0; info->disk.minor = 0; |