summaryrefslogtreecommitdiff
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-08-19 17:55:15 +1000
committerNeilBrown <neilb@suse.de>2008-08-19 17:55:15 +1000
commit567df5fd0a18ed8eed6ee24fb7991b963f56efa0 (patch)
tree4ef422ff0465d3e16fa0b68330c9323ad72961c5 /super-ddf.c
parent2cc2983d80294d948dd86f4973d4cc3ecfe246c0 (diff)
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 <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c1
1 files changed, 1 insertions, 0 deletions
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);
}