summaryrefslogtreecommitdiffstats
path: root/share/examples
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-01-09 19:27:18 +0000
committernjl <njl@FreeBSD.org>2004-01-09 19:27:18 +0000
commit6203d89e01a1e06ea9a8c769f911d93f4fb3e6c2 (patch)
tree6ad9ef59cc09b648478d8d2b33eb6af26749e05a /share/examples
parent470f844116dcc2c1d05a35f0a46db491f06424b7 (diff)
downloadFreeBSD-src-6203d89e01a1e06ea9a8c769f911d93f4fb3e6c2.zip
FreeBSD-src-6203d89e01a1e06ea9a8c769f911d93f4fb3e6c2.tar.gz
Enable autosense by default. This shouldn't hurt SPI and is required
for FC.
Diffstat (limited to 'share/examples')
-rw-r--r--share/examples/scsi_target/scsi_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/examples/scsi_target/scsi_cmds.c b/share/examples/scsi_target/scsi_cmds.c
index efdb35e..b3b5f3f 100644
--- a/share/examples/scsi_target/scsi_cmds.c
+++ b/share/examples/scsi_target/scsi_cmds.c
@@ -258,7 +258,7 @@ tcmd_sense(u_int init_id, struct ccb_scsiio *ctio, u_int8_t flags,
bcopy(sense, &ctio->sense_data, sizeof(*sense));
ctio->sense_len = sizeof(*sense); /* XXX */
ctio->ccb_h.flags &= ~CAM_DIR_MASK;
- ctio->ccb_h.flags |= CAM_DIR_NONE | /* CAM_SEND_SENSE | */
+ ctio->ccb_h.flags |= CAM_DIR_NONE | CAM_SEND_SENSE |
CAM_SEND_STATUS;
ctio->dxfer_len = 0;
ctio->scsi_status = SCSI_STATUS_CHECK_COND;
OpenPOWER on IntegriCloud