[PATCH 32/39] DDF: getinfo_super_ddf_bvd: identify disk by refnum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux