]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Detail: report subarrays of a container properly.
authorNeilBrown <neilb@suse.de>
Wed, 9 Mar 2011 07:22:27 +0000 (18:22 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Mar 2011 07:22:27 +0000 (18:22 +1100)
Due to the wrong variable being used, this part of --detail
wasn't working at all.

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

index e68a88ac155e7716727da95623ea4b23149f093e..375189d0b6332884320018939c54f467b6d1c8ea 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -489,7 +489,7 @@ This is pretty boring
                                if (load_sys(path, vbuf) < 0)
                                        continue;
                                if (strncmp(vbuf, "external:", 9) != 0 ||
-                                   !is_subarray(sra->sys_name+9) ||
+                                   !is_subarray(vbuf+9) ||
                                    strncmp(vbuf+10, sra->sys_name, nlen) != 0 ||
                                    vbuf[10+nlen] != '/')
                                        continue;