I believe this bug is fixed by

 
http://neil.brown.name/git?p=mdadm;a=commitdiff;h=60b435db5a7b085ad1204168879037bf14ebd6d1

see below.

NeilBrown


From: Chris Webb <[EMAIL PROTECTED]>
Date: Thu, 19 Jun 2008 06:30:39 +0000 (+1000)
Subject: Fix bug in forced assemble.
X-Git-Tag: mdadm-3.0-devel1~76^2~12
X-Git-Url: 
http://neil.brown.name/git?p=mdadm;a=commitdiff_plain;h=60b435db5a7b085ad1204168879037bf14ebd6d1

Fix bug in forced assemble.

From: Chris Webb <[EMAIL PROTECTED]>

We are loading into the already-loaded 'st' instead of the
newly create 'tst', which is clearly wrong.
---

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);



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to