Page MenuHomeFreeBSD

Add -l to camcontrol readcap.
ClosedPublic

Authored by imp on Mar 11 2019, 2:36 AM.
Tags
None
Referenced Files
F105991111: D19536.id54959.diff
Mon, Dec 23, 2:12 PM
F105990934: D19536.id54914.diff
Mon, Dec 23, 2:08 PM
Unknown Object (File)
Sat, Dec 7, 5:38 PM
Unknown Object (File)
Nov 12 2024, 3:18 AM
Unknown Object (File)
Nov 11 2024, 5:22 AM
Unknown Object (File)
Sep 26 2024, 8:22 PM
Unknown Object (File)
Sep 18 2024, 11:42 AM
Unknown Object (File)
Sep 5 2024, 11:05 PM
Subscribers
None

Details

Summary

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.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22998
Build 22071: arc lint + arc unit