Specifications
ATAPI For Streaming Tape QIC-157 Rev B
99
6.8.16. WRITE FILEMARK Command
The WRITE FILEMARK command requests that the Device write a filemark to the current position.
Table 6-78 Write Filemark Command
Bit
Byte
7 6 5 4 3 2 1 0
0 Operation code (10h)
1 Reserved 0 (WSmk) 0 (Immed)
2 0
3 0
4 0 Transfer
Length
5 Reserved
6 Reserved
7 Reserved
8 Reserved
9 Reserved
10 Reserved
11 Reserved
The Device shall return status as soon as the command descriptor block has been validated. Any
buffered data, and/or filemarks shall be written to the medium prior to setting DSC to 1.
A Transfer Length of one enables the writing of the filemark. A Transfer Length of zero can be
also be used to synchronize (flush) any buffered data.
If the Device encounters early-warning during WRITE FILEMARK operation, any buffered data or
filemarks shall be written to the medium, and a “Check Condition” will exist when DSC is set to 1. If
all buffered data, and filemarks are successfully transferred to the medium, the Sense Key will be set
to NO SENSE or RECOVERED ERROR, as appropriate.
Implementor's Note: The Device should ensure that some additional data can be written to the
medium (e.g., labels or filemarks) after writing all data stored in the buffers and the first early-
warning indication has been returned to the Host.
In the case of an unrecovered write error, the Valid bit shall be set to one and the Information field shall
be set to the difference (residue) of the sum of the pending requested transfer lengths minus the actual
number of blocks and filemarks written. The value in the Information field may exceed the Transfer
Length for the last command.
Table 6-79 Recommended Sense Key, ASC and ASCQ for WRITE FILEMARK Errors
Sense Key ASC ASCQ Description of Error
02 04 00 NOT READY, CAUSE NOT REPORTABLE
02 3A 00 MEDIUM NOT PRESENT
03 0C 00 MEDIUM ERROR:WRITE ERROR
05 20 00 INVALID COMMAND OPERATION CODE
05 24 00 INVALID FIELD IN COMMAND PACKET
06 28 00 NOT READY TO READY TRANSITION
06 29 00 POWER ON, RESET, OR ATAPI SOFT RESET OCCURRED
06 2A 01 MODE PARAMETERS CHANGED
07 27 00 WRITE PROTECTED
0D 00 02 VOLUME OVERFLOW:END-OF-PARTITION/MEDIUM DETECTED