]> 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>
Thu, 10 Mar 2011 05:55:26 +0000 (16:55 +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 e0817aac20298c442ea32f59b33ad7298d92171e..b3511f39b5bb4f318ca9c47fb437343b145e145a 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -482,7 +482,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;