freebsd-nq/sys/cam/scsi
Kenneth D. Merry 89763b3f8e In scsi_zbc_in(), fill in the length in the ZBC IN CDB.
Without the allocation length set, the target will either reject
the command or complete it without transferring any data.

This fixes the REPORT ZONES command for SCSI ZBC protocol devices,
as well as ATA ZAC protocol devices that are behind a SCSI to ATA
translation layer.  (LSI/Broadcom's 12Gb SAS adapters translate ZBC
commands to ZAC commands.)  Those are Host Aware and Host Managed SMR
drives.

This will fix REPORT ZONE commands sent to the da(4) driver via the
GEOM bio interface and zonectl, and REPORT ZONE commands sent from
camcontrol(8).

Note that in the case of camcontrol(8), we currently only send
SCSI ZBC commands to native SCSI protocol devices, not ATA devices
behind a SAT layer.

sys/cam/scsi/scsi_da.c:
	Fill in the length field in scsi_zbc_in().

MFC after:	3 days
Sponsored by:	Spectra Logic
2017-06-27 17:55:25 +00:00
..
scsi_all.c Don't bother retrying errors for encrypted drives that are locked. 2017-05-03 14:53:27 +00:00
scsi_all.h Add the SCSI Solid State Media Log page (0x11) definition. 2017-05-04 17:23:39 +00:00
scsi_cd.c Add infrastructure to the ATA and SCSI transports that supports 2017-04-19 15:04:52 +00:00
scsi_cd.h
scsi_ch.c Release ccb if mode_buffer allocation fails. 2017-03-28 00:39:41 +00:00
scsi_ch.h sys/cam: spelling fixes in comments. 2016-04-29 21:05:48 +00:00
scsi_da.c In scsi_zbc_in(), fill in the length in the ZBC IN CDB. 2017-06-27 17:55:25 +00:00
scsi_da.h Improve support for informational exceptions. 2016-12-19 10:25:47 +00:00
scsi_dvcfg.h
scsi_enc_internal.h Add infrastructure to the ATA and SCSI transports that supports 2017-04-19 15:04:52 +00:00
scsi_enc_safte.c Allow sleepable allocations in enclosure daemon threads. 2016-05-10 16:20:36 +00:00
scsi_enc_ses.c Fix a memory leak in ses_get_elm_devnames(). 2017-06-26 19:41:14 +00:00
scsi_enc.c Add infrastructure to the ATA and SCSI transports that supports 2017-04-19 15:04:52 +00:00
scsi_enc.h
scsi_iu.h
scsi_low.c Remove dead mentions of CAM target mode APIs from drivers. 2017-02-19 17:27:58 +00:00
scsi_low.h sys/cam: spelling fixes in comments. 2016-04-29 21:05:48 +00:00
scsi_message.h
scsi_pass.c Fix error recovery behavior in the pass(4) driver. 2017-05-03 20:59:47 +00:00
scsi_pass.h Add asynchronous command support to the pass(4) driver, and the new 2015-12-03 20:54:55 +00:00
scsi_pt.c Convert sys/cam to use make_dev_s(). 2016-01-07 20:22:55 +00:00
scsi_pt.h
scsi_sa.c Fix a potential sleep while holding a mutex in the sa(4) driver. 2017-06-19 20:48:00 +00:00
scsi_sa.h Add the SCSI SSC Manufacturer assigned serial number VPD page. 2017-05-02 14:52:28 +00:00
scsi_ses.h Add support for EIIOE flag in Additional Element Status. 2016-11-07 18:21:53 +00:00
scsi_sg.c Convert sys/cam to use make_dev_s(). 2016-01-07 20:22:55 +00:00
scsi_sg.h
scsi_targ_bh.c
scsi_target.c
scsi_targetio.h
scsi_xpt.c Introduce Genesys GL3224 quirks 2017-05-29 09:22:53 +00:00
smp_all.c sys: use our nitems() macro when param.h is available. 2016-04-21 19:40:10 +00:00
smp_all.h