]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix bug with ddf if devices have different sizes.
authorNeilBrown <neilb@suse.de>
Tue, 19 Aug 2008 07:55:15 +0000 (17:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 19 Aug 2008 07:55:15 +0000 (17:55 +1000)
We cannot use the header of the 'best' device to find the
sections on the other devices!!

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

index 8de9ac54e564e0164172ca4638c8ed55435384c2..3477adf6a8e3a4b40bffeda296f815daba48c7ae 100644 (file)
@@ -2533,6 +2533,7 @@ static int load_super_ddf_all(struct supertype *st, int fd,
                dfd = dev_open(nm, keep_fd? O_RDWR : O_RDONLY);
                if (dfd < 0)
                        return 2;
+               load_ddf_headers(dfd, super, NULL);
                seq = load_ddf_local(dfd, super, NULL, keep_fd);
                if (!keep_fd) close(dfd);
        }