Fix iSCSI initiator and vpo driver operation, broken by CAM changes.
Reviewed by: scottl, Danny Braniss Approved by: re (rwatson)
This commit is contained in:
parent
d53e359b9a
commit
33ea30fed7
@ -243,6 +243,7 @@ typedef enum {
|
||||
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)
|
||||
|
@ -3803,6 +3803,8 @@ xpt_bus_register(struct cam_sim *sim, device_t parent, u_int32_t bus)
|
||||
case XPORT_SAS:
|
||||
case XPORT_FC:
|
||||
case XPORT_USB:
|
||||
case XPORT_ISCSI:
|
||||
case XPORT_PPB:
|
||||
new_bus->xport = scsi_get_xport();
|
||||
break;
|
||||
case XPORT_ATA:
|
||||
|
@ -190,6 +190,8 @@ _inq(struct cam_sim *sim, union ccb *ccb, int maxluns)
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -427,6 +427,8 @@ vpo_action(struct cam_sim *sim, union ccb *ccb)
|
||||
strncpy(cpi->hba_vid, "Iomega", HBA_IDLEN);
|
||||
strncpy(cpi->dev_name, sim->sim_name, DEV_IDLEN);
|
||||
cpi->unit_number = sim->unit_number;
|
||||
cpi->transport = XPORT_PPB;
|
||||
cpi->transport_version = 0;
|
||||
|
||||
cpi->ccb_h.status = CAM_REQ_CMP;
|
||||
xpt_done(ccb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user