diff options
author | Neil Brown <neilb@suse.de> | 2008-07-12 20:27:39 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-07-12 20:27:39 +1000 |
commit | d2ca644994d642c31b41242140e1fe819711c8f7 (patch) | |
tree | 787148e3e6e9bb102e608e08a7baca53509ca9d1 /Assemble.c | |
parent | 0d481d3723398828c81963dcd58b1bf768e2c0c2 (diff) | |
download | mdadm-d2ca644994d642c31b41242140e1fe819711c8f7.tar.gz mdadm-d2ca644994d642c31b41242140e1fe819711c8f7.tar.xz mdadm-d2ca644994d642c31b41242140e1fe819711c8f7.zip |
Remove getinfo_super_n and do some other cleaning up.
Getting close to a sensible description of what some of the
superswitch methods are supposed to do!
Diffstat (limited to 'Assemble.c')
-rw-r--r-- | Assemble.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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); |