From: NeilBrown Date: Wed, 9 Mar 2011 07:22:27 +0000 (+1100) Subject: Detail: report subarrays of a container properly. X-Git-Tag: mdadm-3.1.5~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f9ad2de82c918bae7b7f8408bde9739a40e9b9;p=thirdparty%2Fmdadm.git Detail: report subarrays of a container properly. Due to the wrong variable being used, this part of --detail wasn't working at all. Signed-off-by: NeilBrown --- diff --git a/Detail.c b/Detail.c index e0817aac..b3511f39 100644 --- 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;