PERFORCE change 167096 for review

Alexander Motin mav at FreeBSD.org
Sat Aug 8 05:05:53 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=167096

Change 167096 by mav at mav_mavbook on 2009/08/08 05:05:15

	Fix iSCSI initiator.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/cam_ccb.h#25 edit
.. //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#95 edit
.. //depot/projects/scottl-camlock/src/sys/dev/iscsi/initiator/isc_cam.c#3 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/cam_ccb.h#25 (text+ko) ====

@@ -230,6 +230,7 @@
 	XPORT_ATA,	/* AT Attachment */
 	XPORT_SAS,	/* Serial Attached SCSI */
 	XPORT_SATA,	/* Serial AT Attachment */
+	XPORT_ISCSI,	/* iSCSI */
 } cam_xport;
 
 #define PROTO_VERSION_UNKNOWN (UINT_MAX - 1)

==== //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#95 (text+ko) ====

@@ -3799,6 +3799,7 @@
 		case XPORT_SAS:
 		case XPORT_FC:
 		case XPORT_USB:
+		case XPORT_ISCSI:
 			new_bus->xport = scsi_get_xport();
 			break;
 		case XPORT_ATA:

==== //depot/projects/scottl-camlock/src/sys/dev/iscsi/initiator/isc_cam.c#3 (text+ko) ====

@@ -190,6 +190,8 @@
      strncpy(cpi->hba_vid, "iSCSI", HBA_IDLEN);
      strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
      cpi->unit_number = cam_sim_unit(sim);
+     cpi->transport = XPORT_ISCSI;
+     cpi->transport_version = 0;
      cpi->ccb_h.status = CAM_REQ_CMP;
 }
 


More information about the p4-projects mailing list