diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2007-06-19 10:25:30 +0200 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-06-19 19:51:02 -0700 |
commit | 462b7859a07c9c2b060fa2b5b1d49f8b33706d4e (patch) | |
tree | 7e787456714480aebd9b0bf4ae24ed70e0c4e311 /drivers/scsi | |
parent | c7f6b3a39967b0f28d0e507866840f82e4354a23 (diff) | |
download | kernel-crypto-462b7859a07c9c2b060fa2b5b1d49f8b33706d4e.tar.gz kernel-crypto-462b7859a07c9c2b060fa2b5b1d49f8b33706d4e.tar.xz kernel-crypto-462b7859a07c9c2b060fa2b5b1d49f8b33706d4e.zip |
[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')
-rw-r--r-- | drivers/scsi/scsi_scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index a67f315244d..5df28e2fd3b 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, * Given a struct scsi_lun of: 0a 04 0b 03 00 00 00 00, this function returns * the integer: 0x0b030a04 **/ -static int scsilun_to_int(struct scsi_lun *scsilun) +int scsilun_to_int(struct scsi_lun *scsilun) { int i; unsigned int lun; @@ -1215,6 +1215,7 @@ static int scsilun_to_int(struct scsi_lun *scsilun) scsilun->scsi_lun[i + 1]) << (i * 8)); return lun; } +EXPORT_SYMBOL(scsilun_to_int); /** * int_to_scsilun: reverts an int into a scsi_lun |