]> git.neil.brown.name Git - mdadm.git/commitdiff
Fix bug in forced assemble.
authorChris Webb <chris@arachsys.com>
Wed, 18 Jun 2008 20:30:39 +0000 (06:30 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 15 Oct 2008 03:36:14 +0000 (14:36 +1100)
We are loading into the already-loaded 'st' instead of the
newly create 'tst', which is clearly wrong.

Resolves Debian Bugs 496334/499643/498505

Assemble.c

index 36b230435851b9449d78f02fa4952736717007cd..79f091269e68f843cbf9bd03978b8c739f3cf80c 100644 (file)
@@ -656,7 +656,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
                        continue;
                }
                tst = dup_super(st);
-               if (tst->ss->load_super(st,fd, NULL)) {
+               if (tst->ss->load_super(tst,fd, NULL)) {
                        close(fd);
                        fprintf(stderr, Name ": RAID superblock disappeared from %s - not updating.\n",
                                devices[chosen_drive].devname);