From 9c6af290da0030b607397d470c73cf0c87150af8 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Wed, 31 May 2006 23:25:28 +0000 Subject: 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@ --- sys/dev/ic/isp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/ic') 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; + } /* -- cgit v1.2.3