
WRITE FILEMARKS Command (10h) SDLT 600 SCSI Interface Guide
4-252 January 2005 81-81200-02 REV A01
4.39 WRITE FILEMARKS Command (10h)
The WRITE FILEMARKS command directs the SDLT tape drive to write the specified number of
Filemarks onto the tape, beginning at the current logical position. If the Immed bit is not set to 1, the
drive writes any data or Filemarks in the WRITE cache buffer to tape.
Figure 4-136. WRITE FILEMARKS Command Descriptor Block — Data Format
The WRITE FILEMARKS command can be used to force the drive to write any buffered WRITE data
to the tape medium. If the drive is in Buffered mode when it receives a WRITE FILEMARKS
command, it appends the requested Filemarks to the data and flushes the WRITE buffer contents to the
tape medium. A value of 0 in the Number of Filemarks field indicates that no Filemarks are to be
written to the tape medium, but still flushes any WRITE data to the tape if Immed is set to 0.
Bit
Byte
7 6 5 4 3 2 1 0
0 Operation Code (10h)
1 Reserved WSMK (0) Immed
2 – 4
(MSB)
Transfer Length
(LSB)
5 Control
Table 4-147. WRITE FILEMARKS Command — Field Descriptions
Field Name Description
WSMK Write Setmark. Not supported. Must be set to 0.
Immed Immediate. When set to 0, the drive does not return status until all
buffered data and Filemarks are written to the medium. When set to 1,
the drive returns status as soon as it validates the CDB. If set to 1 and the
drive is not operating in Buffered mode (see Table 4-44 on page 4-72),
the drive returns a CHECK CONDITION status with the Sense Key set
to ILLEGAL REQUEST and the Additional Sense Code set to
INVALID FIELD IN CDB.
Transfer Length Contains the number of consecutive Filemarks to be written to the tape
medium. A value of 0 is not considered an error; the drive returns
GOOD status.
SDLT 600
SCSI Interface Guide
SCSI Commands
81-81200-02
REV A01
Komentarze do niniejszej Instrukcji