]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super0.c
super-intel: ensure suspended region is removed when reshape completes.
[thirdparty/mdadm.git] / super0.c
index 7f8001479edc0f58a32adaf128c132c6dfb69a77..59a6a034fb6a2ba5bd442e771b357fc7ce1085f8 100644 (file)
--- a/super0.c
+++ b/super0.c
@@ -405,7 +405,8 @@ static void getinfo_super0(struct supertype *st, struct mdinfo *info, char *map)
        info->array.utime = sb->utime;
        info->array.chunk_size = sb->chunk_size;
        info->array.state = sb->state;
-       info->component_size = sb->size*2;
+       info->component_size = sb->size;
+       info->component_size *= 2;
 
        if (sb->state & (1<<MD_SB_BITMAP_PRESENT))
                info->bitmap_offset = 8;