Page MenuHomeFreeBSD

camcontrol: Simplfiy 12-byte retry logic in defects command
ClosedPublic

Authored by imp on Jun 13 2023, 9:25 PM.
Tags
None
Referenced Files
F106556082: D40522.id123175.diff
Wed, Jan 1, 6:46 PM
Unknown Object (File)
Fri, Dec 13, 4:17 AM
Unknown Object (File)
Thu, Dec 5, 10:33 PM
Unknown Object (File)
Thu, Dec 5, 10:33 PM
Unknown Object (File)
Thu, Dec 5, 10:33 PM
Unknown Object (File)
Dec 1 2024, 3:13 PM
Unknown Object (File)
Nov 15 2024, 1:41 AM
Unknown Object (File)
Nov 5 2024, 12:14 PM
Subscribers
None

Details

Summary

We always start out using the 10-byte version of READ DEFECT DATA, and
then switch to 12-byte when necessary due to errors or data length
requirements. We always need to get the length again when we do this,
and we're always going to be using 12-byte commands from that point
forward. Simplify the logic a bit based on this observation.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable