]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
managemon: fix typo affecting incrmental assembly.
authorNeilBrown <neilb@suse.de>
Mon, 5 Aug 2013 04:25:15 +0000 (14:25 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 5 Aug 2013 04:25:15 +0000 (14:25 +1000)
This clearly should be 'st2'.
As it is the 'raid_disk' value being tested is completely
meaningless in the context of the new device.

Signed-off-by: NeilBrown <neilb@suse.de>
managemon.c

index 21bf2bd555083029301f01a3346db4f3b5985604..c245655733281aab5c86d42d4acc0ccf0065726c 100644 (file)
@@ -289,7 +289,7 @@ static void add_disk_to_container(struct supertype *st, struct mdinfo *sd)
         */
        st2 = dup_super(st);
        if (st2->ss->load_super(st2, dfd, NULL) == 0) {
-               st2->ss->getinfo_super(st, &info, NULL);
+               st2->ss->getinfo_super(st2, &info, NULL);
                if (st->ss->compare_super(st, st2) == 0 &&
                    info.disk.raid_disk >= 0) {
                        /* Looks like a good member of array.