aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_scan.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2007-06-19 04:25:30 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-06-19 22:51:02 -0400
commit462b7859a07c9c2b060fa2b5b1d49f8b33706d4e (patch)
tree7e787456714480aebd9b0bf4ae24ed70e0c4e311 /drivers/scsi/scsi_scan.c
parentc7f6b3a39967b0f28d0e507866840f82e4354a23 (diff)
[SCSI] zfcp: Report FCP LUN to SCSI midlayer
When reporting SCSI devices to the SCSI midlayer, use the FCP LUN as LUN reported to the SCSI layer. With this approach, zfcp does not have to create unique LUNS, and this code can be removed. Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r--drivers/scsi/scsi_scan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
index a67f315244d7..5df28e2fd3bb 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -1204,7 +1204,7 @@ static void scsi_sequential_lun_scan(struct scsi_target *starget,
1204 * Given a struct scsi_lun of: 0a 04 0b 03 00 00 00 00, this function returns 1204 * Given a struct scsi_lun of: 0a 04 0b 03 00 00 00 00, this function returns
1205 * the integer: 0x0b030a04 1205 * the integer: 0x0b030a04
1206 **/ 1206 **/
1207static int scsilun_to_int(struct scsi_lun *scsilun) 1207int scsilun_to_int(struct scsi_lun *scsilun)
1208{ 1208{
1209 int i; 1209 int i;
1210 unsigned int lun; 1210 unsigned int lun;
@@ -1215,6 +1215,7 @@ static int scsilun_to_int(struct scsi_lun *scsilun)
1215 scsilun->scsi_lun[i + 1]) << (i * 8)); 1215 scsilun->scsi_lun[i + 1]) << (i * 8));
1216 return lun; 1216 return lun;
1217} 1217}
1218EXPORT_SYMBOL(scsilun_to_int);
1218 1219
1219/** 1220/**
1220 * int_to_scsilun: reverts an int into a scsi_lun 1221 * int_to_scsilun: reverts an int into a scsi_lun