WRITE FILEMARKS10h

WRITE FILEMARKS causes the specified number of filemarks to be written beginning at the current logical position on tape.

If the Immed bit is set, GOOD status may be reported and the marks left in the data buffer. Otherwise, all buffered data and marks are written before status is reported.

If zero filemarks are to be written, the Immed bit must be zero. The drive writes any buffered data and marks to tape before reporting. This is the recommended way for a host to flush the buffer.

Pre-execution checks:

Illegal Field

Reservation

Deferred Error

Unit Attention

Media Access

Media Write

Diagnostic Status

 

Command descriptor block:

 

 

7

6

5

4

 

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

Operation

Code (10h)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

Reserved (0)

 

 

 

WSmk

Immed

 

 

 

 

 

 

 

 

 

 

 

 

2

(MSB)

 

 

Number of Filemarks

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

(LSB)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

Control

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CDB fields:

Immed

0

Status will not be returned until the operation is complete.

 

1

The drive returns GOOD status following the pre-execution checks (that is, before the

 

 

command starts executing).

 

 

 

WSmk

0

This bit is not supported and must be set to zero.

 

 

 

Number of

0

Zero is valid only when immediate report is disabled.

Marks

>0

This number of filemarks is to be written.

 

 

 

 

Specific status:

Write Filemark sense is identical to status for the Write command.

186 Commands