02.07.2013 Views

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mtio(7) rntio(7)<br />

NAME<br />

mt i 0 - interface conventions for magnetic tape devices<br />

DESCRIPTION<br />

The rnt i 0 library allows applications to access tape devices using<br />

a st<strong>and</strong>ard interface.<br />

While the general read, write, <strong>and</strong> seek operations are part of the<br />

st<strong>and</strong>ard I/O library, additional library resources are required to<br />

add support for tape devices. The rnt i 0 library helps provide a<br />

fairly device-independent way to perform additional operations,<br />

such as rewind, that are common to tape drives, but not common<br />

to other types of devices.<br />

There are several system -dependent parameters that this generic<br />

device interface uses. The most important is a st<strong>and</strong>ard I/O block<br />

size, BLKDEV IOSIZE, which is defined in .<br />

For NUX, thiS value is 1024. The comm<strong>and</strong>s that typically are<br />

used in conjunction with a tape drive, such as tar(1), ultimately<br />

generate requests to read <strong>and</strong> write 1024-byte blocks when the<br />

tape devices are specified for either input or output. However, a<br />

peculiarity of the Apple SC 40 Tape Backup is that it can only<br />

read <strong>and</strong> write in blocks of 8192 bytes, requiring a specially formulated<br />

user comm<strong>and</strong> line (see tc(7) <strong>and</strong> tcb(l)).<br />

The rntio library moderates device I/O when output is sent to or<br />

obtained from the device files in / dev / rrnt.<br />

IOCTLS<br />

When manipulating the tape cartridge device more directly<br />

through your own programs, or through programs such as rnt(l),<br />

tape-specific operations are supported through mtio ioctls. With<br />

a few exceptions, these generic operations are shared by all tape<br />

drives. One exception is the "format" ioctl (MTFORMAT), which<br />

is available for the Apple SC 40 Tape Backup only; in general,<br />

this is not a function of reel tape drives, such as 9-track tape<br />

drives. Other exceptions that apply to the tape cartridge unit are<br />

described in tc(7). The following is a list of mtio ioctls, <strong>and</strong><br />

their associated subcomm<strong>and</strong>s. For complete details about the<br />

data structures, see .<br />

ioctl ifd, MTIOCGET, *mtget)<br />

This tape ioctl causes. the tape unit to return the status of the<br />

tape drive, returning values in mtget.<br />

February, 1990<br />

RevisionC<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!