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:
parent
f646805e80
commit
f5ded78768
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue