]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-intel.c
imsm: set array size at Create/Assemble
[thirdparty/mdadm.git] / super-intel.c
index 3befc3d0712d21b576d6849bb74f465ce33e9e52..b41ab3b133113dbf45fd3cb1565e3301798f9c04 100644 (file)
@@ -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;