3 atazz \- ATA target control
18 is an interactive program for exercising
20 Its intended purpose is to support odd and
21 administrative commands without requiring this
22 functionality be implemented by each device driver.
23 It reads commands from standard input and applies
24 them to an ATA target. Communication is in SATA
25 FIS format. Non-ATA devices accessed
28 interface will not work; ATAPI devices will respond
29 to the commands in the ACS-2 packet feature set.
32 option is given, the name of the given numeric ATA
35 is given on the command line, an
38 is immediately applied to the target.
39 On completion of a command, any errors are
40 printed followed by the prompt
42 The response FIS may be printed with the
47 print processed output by default. Redirecting the
48 output to a file will give the raw output as will the
51 In addition the following commands are implemented
57 Redirect output, input or both to or from a file.
60 is missing, then the redirection is closed.
63 Close the currently open device.
66 Print device path and basic information.
68 .BR issuetr " [ \fIcommand\fP ... ]"
69 Toggle command issue tracing. With no arguments,
70 issuetr toggles tracing for all commands. Commands
71 may be specified by number.
74 Open the named device.
76 Print a list of available device paths, size, sector size
77 and WWNs. The first column is a suitable argument
82 Print the returned FIS, if any.
84 For all commands, it is possible to manipulate
85 the sata registers directly by specifying the register
86 name and an 8-bit value. The registers are
133 reserved FIS register
135 In addition, commands that take an LBA and a number of
136 sectors may be given those arguments directly, for example
137 to read 1 sector starting at lba 100,
140 az> read dma ext 100 1
143 Subcommands are spelled out as in ACS-2.
144 For example, to set the transfer mode to UDMA 6, enable
145 the write cache and to enable and report smart status, one would
148 az> set features set transfer mode udma 6
149 az> set features enable write cache
150 az> smart enable operations
151 az> smart return status
155 SCT pseudo-protocol commands are also supported.
158 az> sct error recovery time set read timer = 5
159 az> sct error recovery time return read timer
164 .BR /dev/sd\fIXX\fP/raw
172 T13/2015 ACS-2 published online at http://www.t13.org.
174 Subcommand help doesn't work. ACS-2 commands are