From 567df5fd0a18ed8eed6ee24fb7991b963f56efa0 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 19 Aug 2008 17:55:15 +1000 Subject: [PATCH] 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 --- super-ddf.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.39.2