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
F144470884: D40522.id123450.diff
Sun, Feb 8, 3:04 PM
Unknown Object (File)
Sat, Feb 7, 9:35 PM
Unknown Object (File)
Sat, Jan 31, 2:05 PM
Unknown Object (File)
Sun, Jan 25, 8:37 PM
Unknown Object (File)
Sun, Jan 25, 4:23 PM
Unknown Object (File)
Dec 25 2025, 8:07 AM
Unknown Object (File)
Dec 7 2025, 10:11 PM
Unknown Object (File)
Nov 27 2025, 4:54 AM
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