6.Command Specification

WRITE FILEMARKS

6.32.WRITE FILEMARKS 10h

Bit

7

6

5

 

4

 

3

 

2

1

0

Byte

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

Operation

Code (10h)

 

 

 

 

1

 

Obsolete

 

 

 

 

Reserved

 

WSmk

Immed

2

(MSB)

 

 

Number of File-marks or Set-marks

 

 

 

3

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

(LSB)

5

 

 

 

 

 

Control

 

 

 

WRITE FILEMARKS causes the specified number of File-marks or Set-marks to be written, beginning at the current logical position on tape.

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.

Number of File-marks or Set-marks:This is the number of consecutive marks to be written to tape. A value of ZERO is not considered an error and GOOD status is returned.

This command may be used to force the drive to write any buffered data to the tape. The requested mark(s) will be appended to the data and the write buffer will be flushed to tape. A ZERO value in the Number of File-marks field indicates that no File-marks are to be written to the tape but the write buffer is still flushed to tape.

If EOT is detected while writing the marks, the drive will finish writing any buffered data. The command will terminate with CHECK CONDITION status. Within the Sense data, the EOM bit is set, the Sense Key field is set to NO SENSE and the Additional Sense Code and Additional Sense Code Qualifier fields are set to EOM/P detected. The drive will attempt to complete any subsequent WRITE FILEMARKS, returning a CHECK CONDITION status in each case.

If the drive encounters the physical EOM when attempting a WRITE FILEMARKS, CHECK CONDITION status is returned. Within the Sense data, the EOD and Valid bits are set and the Sense Key field is set to VOLUME OVERFLOW. The Information fields contain the residue count and the Additional Sense Code and Additional Sense Code Qualifier fields are set to EOM/P Detected. The tape is physically positioned at EOM/P.

6-110

SONY AIT-3Ex drive SDX-800V series Ver.1.1

Page 168
Image 168
Sony SDX-800V/R manual Write Filemarks 10h, Bit Byte Operation Code 10h Obsolete Reserved WSmk Immed