qt(7) UNIX System V qt(7)
NAME
qt - QIC cartridge magnetic tape streamer interface
SYNOPSIS
qt
DESCRIPTION
The format for tape files is described below:
/dev/rmt/c0s0n no rewind on close, no retension on open
/dev/rmt/c0s0 rewind on close, no retension on open
/dev/rmt/c0s0nr no rewind on close, retension on open
/dev/rmt/c0s0r rewind on close, retension on open
These files refer to the Wangtek PC-36 Controller and the QIC-24/QIC-02
basic cartridge tape streamer. Only raw character interface files are
provided. When opened for reading or writing, the tape is assumed to be
positioned as desired. If the file was retension-on-open, the tape is
retensioned before any I/O is performed. When a TRWD, TRETENSION,
TLOAD, or TUNLOAD ioctl is requested after a write, a double end-of-
file (double tape mark) is written before the ioctl is executed. When a
rewind-on-close file is closed, a double end-of-file (double tape mark)
is written if the file was opened for writing and data was written. When
a rewind-on-close file is closed, the tape is rewound. If the file is
no-rewind-on-close and was opened for writing and data was written, only
one EOF is written, and the tape is positioned after the EOF just
written. If the file was no-rewind and the file was opened for read-
only, the tape is positioned after the EOF following the data just read.
The EOF is returned as a zero-length read. By judiciously choosing qt
files, it is possible to read and write multi-file tapes.
A standard tape consists of several 512-byte records terminated by an
EOF. To the extent possible, the system treats the tape like any other
file. As in other raw devices, seeks are ignored. An EOF is returned as
a zero-length read, with the tape positioned after the EOF, so that the
next read will return the next record.
Only one process is permitted to have any of the tape files open at a
given time to the extent it is enforceable. Writing after reading is
permitted, but reading after writing without an intervening rewind is
not. If ONDELAY is clear, opening a retension-on-open file will block
until the retension is complete. If ONDELAY is set, open will return
without delay. Opening a file with OAPPEND set is an error (EINVAL).
The following ioctl's are supported:
TRETENSION retension the tape
TRWD rewind the tape to BOT
TLOAD rewind the tape to BOT
TUNLOAD rewind the tape to BOT
10/89 Page 1
qt(7) UNIX System V qt(7)
TERASE erase the tape and leave it at BOT
TWRFILEM write an EOF (tape mark)
TRST reset the tape device
TSFF skip forward arg files
TSBF skip forward arg blocks
TRDSTAT read the device status registers into the buffer
pointed to by arg.
TSFREC seek Forward a Record
TSBREC seek Backward a Record
TTINIT initialize Tape Interface
TRDBLKLEN read Block Size
TWRBLKLEN set Block Size
TPREVMV prevent Media Removal
TALLOMV allow Media Removal
TSBB space Blocks Backwards
TSFB space Filemarks Backwards
TEOD space to End Of Data
TSSFB space Sequential Filemarks Backwards
TSSFF space Sequential Filemarks Forward
TSTS set Tape Speed (1600/6250 bpi etc.)
TSTD set Tape Density (QIC-120/150 etc.)
FILES
/dev/rmt/c0s0n
/dev/rmt/c0s0
/dev/rmt/c0s0nr
/dev/rmt/c0s0r
SEE ALSO
intro(7),
tape(1) in the User's Reference Manual
Page 2 10/89