diff options
author | remko <remko@FreeBSD.org> | 2007-01-27 21:15:59 +0000 |
---|---|---|
committer | remko <remko@FreeBSD.org> | 2007-01-27 21:15:59 +0000 |
commit | 3f83d16647af106bd5cbc7747ca536f18ab32c2d (patch) | |
tree | d35b7572db07eb4e043b3f9d61d67407eea4b138 /sys/dev/ata | |
parent | e3327eddd28b418594f69ba792e09a806cf4e0c0 (diff) | |
download | FreeBSD-src-3f83d16647af106bd5cbc7747ca536f18ab32c2d.zip FreeBSD-src-3f83d16647af106bd5cbc7747ca536f18ab32c2d.tar.gz |
Add the SMART command to the ATA instruction set.
When the disk has an error, it will now print SMART
instead of 'Unknown CMD'.
PR: kern/93368
Submitted by: Garry Belka <garry at NetworkPhysics dot COM>
Approved by: sos
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-queue.c b/sys/dev/ata/ata-queue.c index f9ba4cb..3649a26 100644 --- a/sys/dev/ata/ata-queue.c +++ b/sys/dev/ata/ata-queue.c @@ -704,6 +704,7 @@ ata_cmd2str(struct ata_request *request) case 0xa0: return ("PACKET_CMD"); case 0xa1: return ("ATAPI_IDENTIFY"); case 0xa2: return ("SERVICE"); + case 0xb0: return ("SMART"); case 0xc0: return ("CFA ERASE"); case 0xc4: return ("READ_MUL"); case 0xc5: return ("WRITE_MUL"); |