ATAZZ(8)ATAZZ(8)
NAME
atazz – ATA target control
SYNOPSIS
DESCRIPTION
Redirect output, input or both to or from a file.
If
Close the currently open device.
Print device path and basic information.
Toggle command issue tracing. With no arguments, issuetr toggles tracing for all commands. Commands may be specified by number.
Open the named device.
Print a list of available device paths, size, sector size
and WWNs. The first column is a suitable argument
for
Print the returned FIS, if any.
For all commands, it is possible to manipulate the sata registers directly by specifying the register name and an 8-bit value. The registers are
FIS type
FIS flags
command register
or
or
or
or
or
sector count
reserved FIS register
In addition, commands that take an LBA and a number of sectors may be given those arguments directly, for example to read 1 sector starting at lba 100,
az> read dma ext 100 1
Subcommands are spelled out as in ACS-2. For example, to set the transfer mode to UDMA 6, enable the write cache and to enable and report smart status, one would
az> set features set transfer mode udma 6 az> set features enable write cache az> smart enable operations az> smart return status normal
SCT pseudo-protocol commands are also supported.
az> sct error recovery time set read timer = 5 az> sct error recovery time return read timer 500ms
FILES
SOURCE
/sys/src/cmd/atazz
SEE ALSO
T13/2015 ACS-2 published online at http://www.t13.org.
BUGS
Subcommand help doesn’t work. ACS-2 commands are tortuously verbose.