freebsd-skq/sbin/camcontrol
Warner Losh b9dd559a32 Add -l to camcontrol readcap.
The -l flag sends only the READ CAPACITY (16) sevice action. Normally
we send the READ CAPACITY (10) command, and only send RC16 when the
capacity is larger than 2TB (since that's the max RC10 can
report). However, some badly programmed drives report different
numbers for RC10 and RC16. This can be hard to diagnose, but generally
there's a "Logical block address out of range" error when RC16 reports
a larger number than RC10 and the RC10 number is the correct one. By
comparing the output of readcap with and without the -l argmuent, one
can determine if there's a mismatch and if the DA_Q_NO_RC16 quirk is
needed.

Reviewed by: ken@
Differential Revision: https://reviews.freebsd.org/D19536
2019-03-12 04:57:05 +00:00
..
attrib.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
camcontrol.8 Add -l to camcontrol readcap. 2019-03-12 04:57:05 +00:00
camcontrol.c Add -l to camcontrol readcap. 2019-03-12 04:57:05 +00:00
camcontrol.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
epc.c Misc Coverity fixes in camcontrol(8) 2017-01-20 21:21:41 +00:00
fwdownload.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
Makefile NVME support is only for x86 and powerpc64. 2018-06-14 01:15:19 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
modeedit.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
persist.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
progress.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
progress.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
timestamp.c Fix camcontrol timestamp setting and update the man page. 2017-05-01 18:53:47 +00:00
util.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
zone.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00