]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix number of problems found while testing on SAT devices.
authorAlexander Motin <mav@FreeBSD.org>
Mon, 9 Sep 2019 17:36:29 +0000 (17:36 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Mon, 9 Sep 2019 17:36:29 +0000 (17:36 +0000)
commitca847845e3e9d181bf26f6646e30582f04d88d60
tree40b135c927823dd6d9c43a07e62aaafac5e1500e
parent25b3370cfddc9570c187930c3b6296ffc4b7d356
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.

MFC after: 5 days
Sponsored by: iXsystems, Inc.
sbin/camcontrol/camcontrol.c