]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
DDF: no need for GET_LAYOUT any more
authormwilck@arcor.de <mwilck@arcor.de>
Thu, 1 Aug 2013 22:35:15 +0000 (00:35 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 5 Aug 2013 01:31:56 +0000 (11:31 +1000)
With the previous patch, mdmon will provide the layout property for us.

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

index 65472a285ec193374802e626d37ae834833c8234..7a7f5fe665118a5c063af2c9dbb62c31e35c857a 100644 (file)
@@ -4697,16 +4697,10 @@ static int raid10_degraded(struct mdinfo *info)
 {
        int n_prim, n_bvds;
        int i;
-       struct mdinfo *d, *sra;
+       struct mdinfo *d;
        char *found;
        int ret = -1;
 
-       if (info->array.layout == 0) {
-               sra = sysfs_read(-1, info->sys_name, GET_LAYOUT);
-               info->array.layout = sra->array.layout;
-               free(sra);
-       }
-
        n_prim = info->array.layout & ~0x100;
        n_bvds = info->array.raid_disks / n_prim;
        found = xmalloc(n_bvds);