Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mtio(4) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cpio(1)

dd(1)

mt(1)

tar(1)

mt(4)

tc(4)

dump(8)

restore(8)



MTIO(4)                 COMMAND REFERENCE                 MTIO(4)



NAME
     mtio - magnetic tape interface for 6130 System 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        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 */
       };






Printed 10/17/86                                                1





MTIO(4)                 COMMAND REFERENCE                 MTIO(4)



     The following values for mt_type are defined for 6130 System
     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), mt(4), tc(4), dump(8),
     restore(8).


































Printed 10/17/86                                                2





































































%%index%%
na:72,95;
sy:167,115;
de:282,2143;2569,514;
fi:3083,117;
ca:3200,115;
se:3315,210;
%%index%%000000000116

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026