Chris Webb: Fix bug in forced assemble.
Martin F. Krafft
madduck at alioth.debian.org
Wed Oct 15 09:01:08 UTC 2008
Module: mdadm
Branch: master
Commit: 28e37719aaef11a5d3aa940bac92063cbaca8648
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=28e37719aaef11a5d3aa940bac92063cbaca8648
Author: Chris Webb <chris at arachsys.com>
Date: Thu Jun 19 06:30:39 2008 +1000
Fix bug in forced assemble.
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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Assemble.c b/Assemble.c
index 36b2304..79f0912 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -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);
More information about the pkg-mdadm-commits
mailing list