Use refnum rather than raiddisk for identifying the physical disk. raiddisk should only be used for auto-layout. --- super-ddf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/super-ddf.c b/super-ddf.c index ee4652a..bff420c 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; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html