]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r352082, r352103: Fix number of problems found while testing on SAT devices.
authorAlexander Motin <mav@FreeBSD.org>
Fri, 13 Sep 2019 15:15:58 +0000 (15:15 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Fri, 13 Sep 2019 15:15:58 +0000 (15:15 +0000)
commit981cbe8bfa5cecf4fbe9be7fb5d734635261ec42
treeb341daef5943af90e12d4d5d0ffa7b25d1482a3c
parent2d665ea9c08e036f680f9dbbd7145095b8b86e1a
MFC r352082, r352103: Fix number of problems found while testing on SAT devices.

 - Remove incomplete and dangerous ata_res decoding from ata_do_cmd().
Instead switch all functions that need the result to use get_ata_status(),
doing the same, but more careful, also reducing code duplication.
 - Made get_ata_status() to also decode fixed format sense.  In many cases
it is still not enough to make it useful, since it can only report results
of 28-bit command, but it is slightly better then nothing.
 - Organize error reporting in ata_do_cmd(), so that if caller specified
AP_FLAG_CHK_COND, it is responsible for command errors (non-ioctl ones).
 - Make HPA/AMA errors not fatal for `identify` subcommand.
 - Fix reprobe() not being called on HPA/AMA when in quiet mode.
 - Remove not very useful messages from `format` and `sanitize` commands
with -y flag.  Once they started, they often can't be stopped any way.
sbin/camcontrol/camcontrol.c