MTIO(4) COMMAND REFERENCE MTIO(4) NAME mtio - magnetic tape interface for UTek workstations SYNOPSIS #include <sys/types.h> #include <sys/mtio.h> DESCRIPTION A number of ioctl operations are available on raw magnetic tape. The following definitions are in <sys/mtio.h>: struct mtop { short mt_op; /* operations defined below */ daddr_t mt_count; /* how many of them */ }; Operations: MTWEOF write an end-of-file record MTFSF forward space file MTBSF backward space file MTFSR forward space record MTBSR backward space record MTREW rewind MTOFFL rewind and put the drive offline MTNOP no operation, sets status only MTFSS forward space sequential file marks MTBSS backward space sequential file marks MTERA erase tape MTEND Printed 4/6/89 1
MTIO(4) COMMAND REFERENCE MTIO(4) move to end of media MTTEN re-tension tape Not all operations are defined on all devices. The type field in the mtget structure below encodes some advisory information about drive capabilities. See the include file and the individual device manual pages for details. Structure for MTIOCGET -- mag tape get status command: struct mtget { short mt_type; /* type of magtape device */ short mt_dsreg; /* drive status (dev dependent)*/ short mt_erreg; /* error (device dependent)*/ short mt_resid; /* residual count */ daddr_t mt_fileno; /* reserved */ daddr_t mt_blkno; /* reserved */ }; The following values for mt_type are defined for UTek workstations. MTISWANGTEK Wangtek 51/4in cartridge tape drive MTISXT 9-track tape Mag tape IOCTL commands: MTIOCTOP do a mag tape operation MTIOCGET get tape status FILES /dev/*tc* cartridge tape interface /dev/*mt* 9-track tape interface CAVEATS The status is not returned in a device independent format. SEE ALSO cpio(1), dd(1), mt(1), tar(1), tc(4), dump(8), and restore(8). Printed 4/6/89 2
%%index%% na:240,104; sy:344,555; de:899,1746;2957,1634; fi:4591,184; ca:4775,143; se:4918,220; %%index%%000000000119