summaryrefslogtreecommitdiff
path: root/managemon.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-08-05 14:25:15 +1000
committerNeilBrown <neilb@suse.de>2013-08-05 14:25:15 +1000
commit4389b648bb9dc8ab61ce8777654d59634dafc737 (patch)
treeec5b59d4f3877ece4c615b812fe8034a6c9cf8fc /managemon.c
parentce45c81986d4a215c117b0084e9455e2b6a3be43 (diff)
downloadmdadm-4389b648bb9dc8ab61ce8777654d59634dafc737.tar.gz
managemon: fix typo affecting incrmental assembly.
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>
Diffstat (limited to 'managemon.c')
-rw-r--r--managemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/managemon.c b/managemon.c
index 21bf2bd..c245655 100644
--- a/managemon.c
+++ b/managemon.c
@@ -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.