7. ATAPI Packet Command Specification
WRITE FILEMARK
SONY AIT-2 Turbo drive SDX-560V series Ver.1.0
7-72
7.26. WRITE FILEMARK 10h
Bit
Byte
7 6 5 4 3 2 1 0
0
Operation Code (10h)
1
Reserved WSmk
Immed
2
Reserved
3
Reserved
4
Reserved
Transfer
Length
5
Reserved
6
Reserved
7
Reserved
8
Reserved
9
Reserved
10
Reserved
11
Reserved
The WRITE FILEMARK command requests that the Device write a filemark or setmark to the current position.
WSmk:
If this bit is set, the drive writes a Set-mark to tape instead of a File-mark.
Immed:
If this bit is set, the drive returns status as soon as the Command Descriptor Block has been validated. An
Immediate bit of ZERO indicates that status will not be returned until the operation has completed.
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. 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.
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.