From: NeilBrown Date: Tue, 19 Aug 2008 07:55:15 +0000 (+1000) Subject: Fix bug with ddf if devices have different sizes. X-Git-Tag: mdadm-3.0-devel1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=567df5fd0a18ed8eed6ee24fb7991b963f56efa0;p=thirdparty%2Fmdadm.git Fix bug with ddf if devices have different sizes. We cannot use the header of the 'best' device to find the sections on the other devices!! Signed-off-by: NeilBrown --- diff --git a/super-ddf.c b/super-ddf.c index 8de9ac54..3477adf6 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -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); }