]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Create.c
imsm: getinfo_super_imsm_volume() doesn't fill all disk information
[thirdparty/mdadm.git] / Create.c
index 48115db800a730a29968f1e1ae78e0c8bfd50e1c..8d88aa12be5d6b0bae5b495073982967f99eb0da 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -856,15 +856,6 @@ int Create(struct supertype *st, char *mddev,
                                        /* getinfo_super might have lost these ... */
                                        inf->disk.major = major(stb.st_rdev);
                                        inf->disk.minor = minor(stb.st_rdev);
-                                       /* FIXME the following should not be needed
-                                        * as getinfo_super is suppose to set
-                                        * them.  However it doesn't for imsm,
-                                        * so we have this hack for now
-                                        */
-                                       if (st->ss == &super_imsm) {
-                                               inf->disk.number = dnum;
-                                               inf->disk.raid_disk = dnum;
-                                       }
                                }
                                break;
                        case 2: