X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=Assemble.c;h=7efa2b8c8bfc4d0526e819f49b207266b9e49f79;hp=d9b9b8104a8e218dc5d924ed59290df2ac709603;hb=d2ca644994d642c31b41242140e1fe819711c8f7;hpb=0d481d3723398828c81963dcd58b1bf768e2c0c2 diff --git a/Assemble.c b/Assemble.c index d9b9b810..7efa2b8c 100644 --- a/Assemble.c +++ b/Assemble.c @@ -914,14 +914,9 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, if (j >= 0 /* && devices[j].uptodate */) { #ifndef MDASSEMBLE - if (st->ss->external) { - devices[j].i.disk.number = - devices[j].i.disk.raid_disk; - st->ss->getinfo_super_n(st, - &devices[j].i); - rv = sysfs_add_disk(sra, - &devices[j].i); - } else + if (st->ss->external) + rv = sysfs_add_disk(sra, &devices[j].i); + else #endif rv = ioctl(mdfd, ADD_NEW_DISK, &devices[j].i.disk);