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 <neilb@suse.de>
This commit is contained in:
mwilck@arcor.de 2013-07-08 23:50:41 +02:00 committed by NeilBrown
parent f646805e80
commit f5ded78768
1 changed files with 1 additions and 1 deletions

View File

@ -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;