summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-12-14 20:14:27 +1100
committerNeil Brown <neilb@suse.de>2007-12-14 20:14:27 +1100
commit64557c33917a6f661d091e36ab00065d4107dcee (patch)
treedb872e93c086ff5db556d1236239e391de122738 /Assemble.c
parent68c7d6d790f856b4e8301d0afa7fc6873a0d4bb8 (diff)
downloadmdadm-64557c33917a6f661d091e36ab00065d4107dcee.tar.gz
mdadm-64557c33917a6f661d091e36ab00065d4107dcee.tar.xz
mdadm-64557c33917a6f661d091e36ab00065d4107dcee.zip
Fix compare_super to take supertype instead of a superblock.
As this function takes 2 superblocks, the change is a bit more subtle, so is done separately.
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index 7837b19..98e4976 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -322,7 +322,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
st = tst;
if (st->ss != tst->ss ||
st->minor_version != tst->minor_version ||
- st->ss->compare_super(&first_super, super) != 0) {
+ st->ss->compare_super(st, tst) != 0) {
/* Some mismatch. If exactly one array matches this host,
* we can resolve on that one.
* Or, if we are auto assembling, we just ignore the second