You
can obtain information on all magnetic tape device characteristics
by using the Get Device/Volume Information ($GETDVI) system service.
(Refer to the HP OpenVMS System Services Reference Manual.)
$GETDVI returns magnetic tape characteristics when you specify
the item codes DVI$_DEVCHAR, DVI$_DEVCHAR2, DVI$_DEVDEPEND, and
DVI$_DEVDEPEND2.
Magnetic Tape Device-Independent Characteristics,
Device-Dependent Information for Tape Devices, and
Extended Device Characteristics for Tape Devices list these characteristics. The $DEVDEF macro defines
the device-independent characteristics, the $MTDEF macro defines
the device-dependent characteristics, and the $MT2DEF macro defines
the extended device characteristics. The extended device characteristics
apply only to the TU81-Plus tape drive.
Table 1 Magnetic Tape Device-Independent Characteristics
If set, the
selected drive is hardware write-locked.
MT$M_EOT
If set, an
end-of-tape (EOT) condition was encountered by the last operation
to move the tape in the forward direction.
MT$M_EOF
If set, a tape
mark was encountered by the last operation to move the tape.
MT$M_BOT
If set, a beginning-of-tape
(BOT) marker was encountered by the last operation to move the tape
in the reverse direction.
MT$M_PARITY
If set, all
data transfers are performed with even parity. If clear (normal case),
all data transfers are performed with odd parity. Only nonreturn-to-zero-inverted
recording at 800 bits/inch can have even parity.
MT$V_DENSITY MT$S_DENSITY
Specifies the
density at which all data transfer operations are performed. Possible
density values are as follows:
Specifies the
format in which all data transfers are performed. A possible format
value is as follows:
MT$K_NORMAL11
Normal PDP-11 format. Data
bytes are recorded sequentially on tape with each byte occupying exactly
one frame.
MT$_FASTSKIP_USED
If set, the most recent
IO$_SKIPFILE function was performed using the optimized SCSI space-by-file-marks
algorithm. (See
Skip File for
more information about the IO$M_ALLOWFAST modifier to the IO$_SKIPFILE
function.)
Table 3 Extended Device Characteristics for Tape Devices
If set, write-back
caching is enabled for this unit.
MT2$V_RDC_DISABLE
If set, read caching is disabled
for this unit.
DVI$_DEVTYPE and DVI$_DEVCLASS return the device type and
class names, which are defined by the $DCDEF macro. DVI$_DEVBUFSIZ
returns the buffer size. The buffer size is the default to be used
for tape transfers (normally 2048 bytes). The device class for magnetic
tapes is $DCTAPE, and the device type is determined by the magnetic
tape model. For example, the device type for the TA78 is DT$_TA78;
for the TA81 it is DT$_TA81.
This function code takes no function-dependent arguments.
Defined
by the $MT2DEF macro. Only for the TU81-Plus. Initial device status
will show both of these bits cleared; write-back caching will be
disabled, read caching will be enabled.