From: mwilck@arcor.de Date: Mon, 8 Jul 2013 21:50:41 +0000 (+0200) Subject: DDF: getinfo_super_ddf_bvd: identify disk by refnum X-Git-Tag: mdadm-3.3-rc2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5ded78768f691e6a401185f8aef00b0c92967d7;p=thirdparty%2Fmdadm.git DDF: getinfo_super_ddf_bvd: identify disk by refnum Use refnum rather than raiddisk for identifying the physical disk. raiddisk should only be used for auto-layout. Signed-off-by: NeilBrown --- diff --git a/super-ddf.c b/super-ddf.c index ee4652ad..bff420cd 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1878,7 +1878,7 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info, cha } for (dl = ddf->dlist; dl ; dl = dl->next) - if (dl->raiddisk == ddf->currentdev) + if (dl->disk.refnum == conf->phys_refnum[cd]) break; info->disk.major = 0;