X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=Create.c;h=b7f0914329b79940db80577b615e3a73e6ea4052;hp=59a41a66aff5a2e6b3b6dcde4d64e0e9b23deda4;hb=159c3a1a7785693d21f5226182f9c066882bef66;hpb=ed9d66aadec7ae41751e3a95352628814b47fbad diff --git a/Create.c b/Create.c index 59a41a66..b7f09143 100644 --- a/Create.c +++ b/Create.c @@ -512,6 +512,8 @@ int Create(struct supertype *st, char *mddev, int mdfd, if (!st->ss->init_super(st, &info.array, size, name, homehost, uuid)) return 1; + st->ss->getinfo_super(st, &info); + if (bitmap_file && vers < 9003) { major_num = BITMAP_MAJOR_HOSTENDIAN; #ifdef __BIG_ENDIAN @@ -541,7 +543,8 @@ int Create(struct supertype *st, char *mddev, int mdfd, char ver[100]; if (st->ss->external == 1) /* container */ - strcat(strcpy(ver, "external:"), st->ss->text_version); + strcat(strcpy(ver, "external:"), + info.text_version); else { /* member */ sprintf(ver, "external:/%s/%d",