]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
DDF: remove some pointless code in validate_geometry
authorNeilBrown <neilb@suse.de>
Wed, 21 May 2014 04:03:48 +0000 (14:03 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 21 May 2014 04:03:48 +0000 (14:03 +1000)
I'm not sure what this was supposed to do, but it isn't needed
as creating on a container and on individual devices (in a container)
work fine already.

Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c

index 6368bc43ed05a777342ec84922cf0612807a8956..f9121995e34ebcaded205f20e200b9fbacaa6647 100644 (file)
@@ -3435,16 +3435,8 @@ static int validate_geometry_ddf(struct supertype *st,
         */
        fd = open(dev, O_RDONLY|O_EXCL, 0);
        if (fd >= 0) {
-               sra = sysfs_read(fd, NULL, GET_VERSION);
                close(fd);
-               if (sra && sra->array.major_version == -1 &&
-                   strcmp(sra->text_version, "ddf") == 0) {
-                       /* load super */
-                       /* find space for 'n' devices. */
-                       /* remember the devices */
-                       /* Somehow return the fact that we have enough */
-               }
-
+               /* Just a bare device, no good to us */
                if (verbose)
                        pr_err("ddf: Cannot create this array "
                               "on device %s - a container is required.\n",