summaryrefslogtreecommitdiff
path: root/sys/dev/ic/isp.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-05-31 23:25:28 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-05-31 23:25:28 +0000
commit9c6af290da0030b607397d470c73cf0c87150af8 (patch)
treeeac77cdda792ced0f6d34d76d811110d4db1e812 /sys/dev/ic/isp.c
parent99f13d0ca2e21981f0beb8fb861310ac0b6d6852 (diff)
Capture the port_wwn and node_wwn corresponding to a target id every
time a scsi_request is processed. Crude but effective until a more elegant solution is found. This allows the boot drive to be found on fibre channel booting machines. ok jason@ deraadt@
Diffstat (limited to 'sys/dev/ic/isp.c')
-rw-r--r--sys/dev/ic/isp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/isp.c b/sys/dev/ic/isp.c
index 002213f08f9..ddf29d3d067 100644
--- a/sys/dev/ic/isp.c
+++ b/sys/dev/ic/isp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isp.c,v 1.36 2006/04/20 20:31:12 miod Exp $ */
+/* $OpenBSD: isp.c,v 1.37 2006/05/31 23:25:27 krw Exp $ */
/*
* Machine and OS Independent (well, as best as possible)
* code for the Qlogic ISP SCSI adapters.
@@ -3147,6 +3147,9 @@ isp_start(XS_T *xs)
* Now turn target into what the actual Loop ID is.
*/
target = lp->loopid;
+ xs->sc_link->node_wwn = lp->node_wwn;
+ xs->sc_link->port_wwn = lp->port_wwn;
+
}
/*