DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: m

⟦699628813⟧

    Length: 6250 (0x186a)
    Names: »mt.4«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat4/mt.4« 

Default Hex Dump

0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 44 65 76 69 63 65 73 20 61 6e 64 20 46 61 63 69   ┆ u_ a_ l        Devices and Faci┆
0x0040…0060 6c 69 74 69 65 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 74 28 34 29 0a 0a 0a 0a   ┆lities                 mt(4)    ┆
0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20   ┆N N N NA A A AM M M ME E E E    ┆
0x0080…00a0 20 20 6d 74 20 2d 20 6d 61 67 6e 65 74 69 63 20 74 61 70 65 20 69 6e 74 65 72 66 61 63 65 0a 0a   ┆  mt - magnetic tape interface  ┆
0x00a0…00c0 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08   ┆D D D DE E E ES S S SC C C CR R ┆
0x00c0…00e0 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f   ┆R RI I I IP P P PT T T TI I I IO┆
0x00e0…0100 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 6d 61 67 6e 65 74 69 63 20   ┆ O O ON N N N      The magnetic ┆
0x0100…0120 74 61 70 65 20 73 75 62 73 79 73 74 65 6d 20 70 72 6f 76 69 64 65 73 20 61 20 73 74 61 6e 64 61   ┆tape subsystem provides a standa┆
0x0120…0140 72 64 20 74 61 70 65 20 64 72 69 76 65 0a 20 20 20 20 20 69 6e 74 65 72 66 61 63 65 20 61 73 20   ┆rd tape drive      interface as ┆
0x0140…0160 64 65 73 63 72 69 62 65 64 20 62 65 6c 6f 77 2e 0a 0a 20 20 20 20 20 41 6e 20 61 72 62 69 74 72   ┆described below.       An arbitr┆
0x0160…0180 61 72 79 20 6e 75 6d 62 65 72 20 6f 66 20 64 65 76 69 63 65 20 66 69 6c 65 73 20 69 6e 20 74 68   ┆ary number of device files in th┆
0x0180…01a0 65 20 2f 64 65 76 20 64 69 72 65 63 74 6f 72 79 0a 20 20 20 20 20 6d 61 79 20 72 65 66 65 72 20   ┆e /dev directory      may refer ┆
0x01a0…01c0 74 6f 20 61 20 74 61 70 65 20 64 72 69 76 65 2e 20 20 55 73 75 61 6c 6c 79 20 61 20 73 69 6e 67   ┆to a tape drive.  Usually a sing┆
0x01c0…01e0 6c 65 20 64 65 76 69 63 65 20 66 69 6c 65 20 69 73 0a 20 20 20 20 20 70 72 65 73 65 6e 74 20 66   ┆le device file is      present f┆
0x01e0…0200 6f 72 20 65 76 65 72 79 20 50 55 20 69 6e 20 74 68 65 20 73 79 73 74 65 6d 20 74 68 61 74 20 70   ┆or every PU in the system that p┆
0x0200…0220 68 79 73 69 63 61 6c 6c 79 20 6f 77 6e 73 20 61 0a 20 20 20 20 20 74 61 70 65 20 64 72 69 76 65   ┆hysically owns a      tape drive┆
0x0220…0240 2e 0a 0a 20 20 20 20 20 54 61 70 65 20 64 65 76 69 63 65 20 66 69 6c 65 73 20 61 72 65 20 63 72   ┆.       Tape device files are cr┆
0x0240…0260 65 61 74 65 64 20 77 69 74 68 20 74 68 65 20 5f 08 6d 5f 08 6b 5f 08 6e 5f 08 6f 5f 08 64 28 38   ┆eated with the _ m_ k_ n_ o_ d(8┆
0x0260…0280 29 20 75 74 69 6c 69 74 79 2e 20 20 54 58 0a 20 20 20 20 20 75 73 65 73 20 74 68 65 20 66 6f 6c   ┆) utility.  TX      uses the fol┆
0x0280…02a0 6c 6f 77 69 6e 67 20 6e 61 6d 69 6e 67 20 63 6f 6e 76 65 6e 74 69 6f 6e 2c 20 62 61 73 65 64 20   ┆lowing naming convention, based ┆
0x02a0…02c0 6f 6e 20 74 68 65 20 6e 61 6d 65 20 6f 66 0a 20 20 20 20 20 74 68 65 20 50 55 20 74 68 61 74 20   ┆on the name of      the PU that ┆
0x02c0…02e0 70 68 79 73 69 63 61 6c 6c 79 20 6f 77 6e 73 20 74 68 65 20 74 61 70 65 20 64 72 69 76 65 3a 20   ┆physically owns the tape drive: ┆
0x02e0…0300 2f 64 65 76 2f 6d 74 5f 5f 08 70 5f 08 75 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 2e 0a 0a 20 20 20   ┆/dev/mt__ p_ u_ n_ a_ m_ e.     ┆
0x0300…0320 20 20 41 20 73 70 65 63 69 66 69 63 20 70 68 79 73 69 63 61 6c 20 74 61 70 65 20 64 65 76 69 63   ┆  A specific physical tape devic┆
0x0320…0340 65 20 69 73 20 69 64 65 6e 74 69 66 69 65 64 20 62 79 20 61 20 64 72 69 76 65 0a 20 20 20 20 20   ┆e is identified by a drive      ┆
0x0340…0360 6e 75 6d 62 65 72 20 63 6f 6e 73 69 73 74 69 6e 67 20 6f 66 20 74 68 72 65 65 20 64 65 63 69 6d   ┆number consisting of three decim┆
0x0360…0380 61 6c 20 64 69 67 69 74 73 3a 0a 0a 20 20 20 20 20 5f 08 63 5f 08 68 5f 08 61 5f 08 6e 5f 08 6e   ┆al digits:       _ c_ h_ a_ n_ n┆
0x0380…03a0 5f 08 65 5f 08 6c 20 20 20 20 20 20 69 73 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 6f 6e 20 77 68   ┆_ e_ l      is the channel on wh┆
0x03a0…03c0 69 63 68 20 74 68 65 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 69 73 0a 20 20 20 20 20 20 20 20 20 20   ┆ich the controller is           ┆
0x03c0…03e0 20 20 20 20 20 20 20 20 61 74 74 61 63 68 65 64 2c 20 30 20 74 68 72 6f 75 67 68 20 33 2e 0a 0a   ┆        attached, 0 through 3.  ┆
0x03e0…0400 20 20 20 20 20 5f 08 63 5f 08 6f 5f 08 6e 5f 08 74 5f 08 72 5f 08 6f 5f 08 6c 5f 08 6c 5f 08 65   ┆     _ c_ o_ n_ t_ r_ o_ l_ l_ e┆
0x0400…0420 5f 08 72 20 20 20 69 73 20 74 68 65 20 61 64 64 72 65 73 73 20 6f 66 20 74 68 65 20 63 6f 6e 74   ┆_ r   is the address of the cont┆
0x0420…0440 72 6f 6c 6c 65 72 20 6f 6e 20 74 68 65 20 63 68 61 6e 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20   ┆roller on the chan-             ┆
0x0440…0460 20 20 20 20 20 20 6e 65 6c 2c 20 30 20 74 68 72 6f 75 67 68 20 37 2e 0a 0a 20 20 20 20 20 5f 08   ┆      nel, 0 through 7.       _ ┆
0x0460…0480 64 5f 08 65 5f 08 76 5f 08 69 5f 08 63 5f 08 65 20 20 20 20 20 20 20 69 73 20 74 68 65 20 74 61   ┆d_ e_ v_ i_ c_ e       is the ta┆
0x0480…04a0 70 65 20 75 6e 69 74 20 61 64 64 72 65 73 73 20 6f 6e 20 74 68 65 20 63 6f 6e 74 72 6f 6c 6c 65   ┆pe unit address on the controlle┆
0x04a0…04c0 72 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6c 77 61 79 73 20 30 2e 0a 0a   ┆r,                   always 0.  ┆
0x04c0…04e0 20 20 20 20 20 42 69 6e 64 69 6e 67 20 62 65 74 77 65 65 6e 20 61 20 64 65 76 69 63 65 20 66 69   ┆     Binding between a device fi┆
0x04e0…0500 6c 65 20 6e 61 6d 65 20 61 6e 64 20 74 68 65 20 33 2d 64 69 67 69 74 20 64 72 69 76 65 0a 20 20   ┆le name and the 3-digit drive   ┆
0x0500…0520 20 20 20 6e 75 6d 62 65 72 20 6f 63 63 75 72 73 20 77 68 65 6e 20 74 68 65 20 6e 6f 64 65 20 69   ┆   number occurs when the node i┆
0x0520…0540 73 20 63 72 65 61 74 65 64 2e 20 20 42 6f 74 68 20 6e 61 6d 65 20 61 6e 64 20 64 72 69 76 65 0a   ┆s created.  Both name and drive ┆
0x0540…0560 20 20 20 20 20 6e 75 6d 62 65 72 20 61 72 65 20 70 61 72 61 6d 65 74 65 72 73 20 74 6f 20 5f 08   ┆     number are parameters to _ ┆
0x0560…0580 6d 5f 08 6b 5f 08 6e 5f 08 6f 5f 08 64 2e 0a 0a 20 20 20 20 20 4f 08 4f 08 4f 08 4f 70 08 70 08   ┆m_ k_ n_ o_ d.       O O O Op p ┆
0x0580…05a0 70 08 70 65 08 65 08 65 08 65 72 08 72 08 72 08 72 61 08 61 08 61 08 61 74 08 74 08 74 08 74 69   ┆p pe e e er r r ra a a at t t ti┆
0x05a0…05c0 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 0a 20 20 20 20 20 54 68 65 20 54 58   ┆ i i io o o on n n n      The TX┆
0x05c0…05e0 20 6d 61 67 6e 65 74 69 63 20 74 61 70 65 20 69 6e 74 65 72 66 61 63 65 20 69 73 20 65 71 75 69   ┆ magnetic tape interface is equi┆
0x05e0…0600 76 61 6c 65 6e 74 20 74 6f 20 74 68 65 20 60 60 72 61 77 27 27 0a 20 20 20 20 20 69 6e 74 65 72   ┆valent to the ``raw''      inter┆
0x0600…0620 66 61 63 65 20 69 6e 20 55 4e 49 58 20 3b 20 6e 6f 20 65 71 75 69 76 61 6c 65 6e 74 20 6f 66 20   ┆face in UNIX ; no equivalent of ┆
0x0620…0640 62 75 66 66 65 72 65 64 20 6d 61 67 6e 65 74 69 63 20 74 61 70 65 0a 20 20 20 20 20 69 73 20 61   ┆buffered magnetic tape      is a┆
0x0640…0660 76 61 69 6c 61 62 6c 65 2e 20 20 48 6f 77 65 76 65 72 2c 20 74 68 65 20 4d 54 49 4f 42 55 46 46   ┆vailable.  However, the MTIOBUFF┆
0x0660…0680 45 52 45 44 20 49 4f 43 54 4c 20 63 61 6e 20 62 65 20 75 73 65 64 0a 20 20 20 20 20 66 6f 72 20   ┆ERED IOCTL can be used      for ┆
0x0680…06a0 72 65 61 64 2d 61 68 65 61 64 20 61 6e 64 20 77 72 69 74 65 2d 61 68 65 61 64 2e 20 20 54 68 69   ┆read-ahead and write-ahead.  Thi┆
0x06a0…06c0 73 20 77 6f 72 6b 73 20 6c 69 6b 65 20 74 68 65 20 54 58 20 66 69 6c 65 0a 20 20 20 20 20 73 79   ┆s works like the TX file      sy┆
0x06c0…06e0 73 74 65 6d 2e 20 20 54 68 65 20 62 6c 6f 63 6b 20 73 69 7a 65 20 6d 75 73 74 20 62 65 20 67 69   ┆stem.  The block size must be gi┆
0x06e0…0700 76 65 6e 2e 20 20 54 68 65 20 49 4f 43 54 4c 20 75 73 65 73 20 74 68 65 0a 20 20 20 20 20 6d 74   ┆ven.  The IOCTL uses the      mt┆
0x0700…0720 62 75 66 20 73 74 72 75 63 74 75 72 65 2e 20 20 42 6f 74 68 20 61 72 65 20 69 6e 63 6c 75 64 65   ┆buf structure.  Both are include┆
0x0720…0740 64 20 69 6e 20 74 68 65 20 6d 74 69 6f 20 64 65 73 63 72 69 70 74 69 6f 6e 0a 20 20 20 20 20 62   ┆d in the mtio description      b┆
0x0740…0760 65 6c 6f 77 2e 0a 0a 20 20 20 20 20 45 61 63 68 20 5f 08 72 5f 08 65 5f 08 61 5f 08 64 20 6f 72   ┆elow.       Each _ r_ e_ a_ d or┆
0x0760…0780 20 5f 08 77 5f 08 72 5f 08 69 5f 08 74 5f 08 65 20 63 61 6c 6c 20 72 65 61 64 73 20 6f 72 20 77   ┆ _ w_ r_ i_ t_ e call reads or w┆
0x0780…07a0 72 69 74 65 73 20 74 68 65 20 6e 65 78 74 20 72 65 63 6f 72 64 20 6f 6e 0a 20 20 20 20 20 74 68   ┆rites the next record on      th┆
0x07a0…07c0 65 20 74 61 70 65 2e 20 20 49 6e 20 74 68 65 20 5f 08 77 5f 08 72 5f 08 69 5f 08 74 5f 08 65 20   ┆e tape.  In the _ w_ r_ i_ t_ e ┆
0x07c0…07e0 63 61 73 65 2c 20 74 68 65 20 74 61 70 65 20 72 65 63 6f 72 64 20 69 73 20 77 72 69 74 74 65 6e   ┆case, the tape record is written┆
0x07e0…0800 0a 20 20 20 20 20 77 69 74 68 20 74 68 65 20 73 61 6d 65 20 6c 65 6e 67 74 68 20 61 73 20 74 68   ┆      with the same length as th┆
0x0800…0820 65 20 62 75 66 66 65 72 20 67 69 76 65 6e 2e 20 20 44 75 72 69 6e 67 20 61 20 5f 08 72 5f 08 65   ┆e buffer given.  During a _ r_ e┆
0x0820…0840 5f 08 61 5f 08 64 2c 0a 20 20 20 20 20 74 68 65 20 72 65 63 6f 72 64 20 73 69 7a 65 20 69 73 20   ┆_ a_ d,      the record size is ┆
0x0840…0860 70 61 73 73 65 64 20 62 61 63 6b 20 61 73 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 62 79 74   ┆passed back as the number of byt┆
0x0860…0880 65 73 20 72 65 61 64 2c 0a 20 20 20 20 20 70 72 6f 76 69 64 65 64 20 74 68 65 20 73 69 7a 65 20   ┆es read,      provided the size ┆
0x0880…08a0 69 73 20 6e 6f 74 20 67 72 65 61 74 65 72 20 74 68 61 6e 20 74 68 65 20 62 75 66 66 65 72 20 73   ┆is not greater than the buffer s┆
0x08a0…08c0 69 7a 65 2e 20 20 28 49 66 0a 20 20 20 20 20 74 68 65 20 72 65 63 6f 72 64 20 69 73 20 6c 6f 6e   ┆ize.  (If      the record is lon┆
0x08c0…08e0 67 65 72 20 74 68 61 6e 20 74 68 65 20 62 75 66 66 65 72 2c 20 6e 6f 20 65 72 72 6f 72 20 69 73   ┆ger than the buffer, no error is┆
0x08e0…0900 20 70 72 69 6e 74 65 64 3b 0a 20 20 20 20 20 68 6f 77 65 76 65 72 2c 20 61 20 6d 65 73 73 61 67   ┆ printed;      however, a messag┆
0x0900…0920 65 20 69 73 20 70 72 69 6e 74 65 64 20 6f 6e 20 74 68 65 20 73 79 73 74 65 6d 20 63 6f 6e 73 6f   ┆e is printed on the system conso┆
0x0920…0940 6c 65 2e 29 20 57 68 65 6e 0a 20 20 20 20 20 69 74 20 72 65 61 64 73 20 61 20 74 61 70 65 20 6d   ┆le.) When      it reads a tape m┆
0x0940…0960 61 72 6b 2c 20 74 68 65 20 73 79 73 74 65 6d 20 72 65 74 75 72 6e 73 20 61 20 7a 65 72 6f 2d 62   ┆ark, the system returns a zero-b┆
0x0960…0980 79 74 65 20 63 6f 75 6e 74 2e 0a 20 20 20 20 20 54 68 65 20 6e 65 78 74 20 72 65 61 64 20 66 65   ┆yte count.      The next read fe┆
0x0980…09a0 74 63 68 65 73 20 74 68 65 20 66 69 72 73 74 20 72 65 63 6f 72 64 20 6f 66 20 74 68 65 20 66 6f   ┆tches the first record of the fo┆
0x09a0…09c0 6c 6c 6f 77 69 6e 67 20 66 69 6c 65 0a 20 20 20 20 20 6f 6e 20 74 68 65 20 74 61 70 65 2e 0a 0a   ┆llowing file      on the tape.  ┆
0x09c0…09e0 20 20 20 20 20 5f 08 6c 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 20 69 73 20 69 67 6e 6f 72 65 64 20   ┆     _ l_ s_ e_ e_ k is ignored ┆
0x09e0…0a00 66 6f 72 20 74 61 70 65 20 64 65 76 69 63 65 73 2e 0a 0a 20 20 20 20 20 52 65 77 69 6e 64 20 69   ┆for tape devices.       Rewind i┆
0x0a00…0a20 73 20 74 68 65 20 64 65 66 61 75 6c 74 20 6f 6e 20 63 6c 6f 73 65 2e 20 20 57 68 65 6e 20 61 20   ┆s the default on close.  When a ┆
0x0a20…0a40 66 69 6c 65 20 6f 70 65 6e 20 66 6f 72 20 77 72 69 74 2d 0a 20 20 20 20 20 69 6e 67 20 69 73 20   ┆file open for writ-      ing is ┆
0x0a40…0a60 63 6c 6f 73 65 64 2c 20 32 20 65 6e 64 2d 6f 66 2d 66 69 6c 65 73 20 61 72 65 20 77 72 69 74 74   ┆closed, 2 end-of-files are writt┆
0x0a60…0a80 65 6e 2e 20 20 49 66 20 74 68 65 20 74 61 70 65 20 69 73 0a 20 20 20 20 20 6e 6f 74 20 74 6f 20   ┆en.  If the tape is      not to ┆
0x0a80…0aa0 62 65 20 72 65 77 6f 75 6e 64 2c 20 69 74 20 69 73 20 70 6f 73 69 74 69 6f 6e 65 64 20 77 69 74   ┆be rewound, it is positioned wit┆
0x0aa0…0ac0 68 20 74 68 65 20 68 65 61 64 20 62 65 74 77 65 65 6e 0a 20 20 20 20 20 74 68 65 20 32 20 74 61   ┆h the head between      the 2 ta┆
0x0ac0…0ae0 70 65 6d 61 72 6b 73 2e 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 41 20 6e 75 6d 62 65 72 20 6f 66   ┆pemarks.             A number of┆
0x0ae0…0b00 20 5f 08 69 5f 08 6f 5f 08 63 5f 08 74 5f 08 6c 20 6f 70 65 72 61 74 69 6f 6e 73 20 61 72 65 20   ┆ _ i_ o_ c_ t_ l operations are ┆
0x0b00…0b20 61 76 61 69 6c 61 62 6c 65 20 6f 6e 20 6d 61 67 6e 65 74 69 63 20 74 61 70 65 2e 0a 0a 20 20 20   ┆available on magnetic tape.     ┆
0x0b20…0b40 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 64 65 66 69 6e 69 74 69 6f 6e 73 20 61 72 65 20   ┆  The following definitions are ┆
0x0b40…0b60 66 72 6f 6d 20 3c 73 79 73 2f 6d 74 69 6f 2e 68 3e 3a 0a 0a 20 20 20 20 20 2f 2a 0a 20 20 20 20   ┆from <sys/mtio.h>:       /*     ┆
0x0b60…0b80 20 20 2a 20 53 74 72 75 63 74 75 72 65 73 20 61 6e 64 20 64 65 66 69 6e 69 74 69 6f 6e 73 20 66   ┆  * Structures and definitions f┆
0x0b80…0ba0 6f 72 20 6d 61 67 20 74 61 70 65 20 49 2f 4f 20 63 6f 6e 74 72 6f 6c 20 63 6f 6d 6d 61 6e 64 73   ┆or mag tape I/O control commands┆
0x0ba0…0bc0 0a 20 20 20 20 20 20 2a 2f 0a 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 41 58 5f 4d 54 42 4c   ┆       */       #define MAX_MTBL┆
0x0bc0…0be0 4f 43 4b 20 20 20 20 20 20 20 20 20 20 20 20 20 28 36 34 20 2a 20 31 30 32 34 29 2f 2a 20 36 34   ┆OCK             (64 * 1024)/* 64┆
0x0be0…0c00 6b 20 69 73 20 74 68 65 20 6d 61 78 2e 20 74 61 70 65 20 62 6c 6f 63 6b 20 73 69 7a 65 20 2a 2f   ┆k is the max. tape block size */┆
0x0c00…0c20 0a 0a 20 20 20 20 20 2f 2a 20 73 74 72 75 63 74 75 72 65 20 66 6f 72 20 4d 54 49 4f 43 54 4f 50   ┆       /* structure for MTIOCTOP┆
0x0c20…0c40 20 2d 20 6d 61 67 20 74 61 70 65 20 6f 70 20 63 6f 6d 6d 61 6e 64 20 2a 2f 0a 20 20 20 20 20 73   ┆ - mag tape op command */      s┆
0x0c40…0c60 74 72 75 63 74 20 6d 74 6f 70 20 7b 0a 20 20 20 20 20 20 20 20 20 20 73 68 6f 72 74 20 20 20 20   ┆truct mtop {           short    ┆
0x0c60…0c80 20 6d 74 5f 6f 70 3b 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 6f 70 65 72 61 74 69 6f 6e 73 20   ┆ mt_op;           /* operations ┆
0x0c80…0ca0 64 65 66 69 6e 65 64 20 62 65 6c 6f 77 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 64 61 64 64 72   ┆defined below */           daddr┆
0x0ca0…0cc0 5f 74 20 20 20 6d 74 5f 63 6f 75 6e 74 3b 20 20 20 20 20 20 20 20 2f 2a 20 68 6f 77 20 6d 61 6e   ┆_t   mt_count;        /* how man┆
0x0cc0…0ce0 79 20 6f 66 20 74 68 65 6d 20 2a 2f 0a 20 20 20 20 20 7d 3b 0a 0a 20 20 20 20 20 2f 2a 20 6f 70   ┆y of them */      };       /* op┆
0x0ce0…0d00 65 72 61 74 69 6f 6e 73 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54 57 45 4f 46 20   ┆erations */      #define MTWEOF ┆
0x0d00…0d20 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 77 72 69 74 65 20 61 6e 20 65 6e 64   ┆0                /* write an end┆
0x0d20…0d40 2d 6f 66 2d 66 69 6c 65 20 72 65 63 6f 72 64 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20   ┆-of-file record */      #define ┆
0x0d40…0d60 4d 54 46 53 46 20 20 31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 66 6f 72 77 61   ┆MTFSF  1                /* forwa┆
0x0d60…0d80 72 64 20 73 70 61 63 65 20 66 69 6c 65 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54   ┆rd space file */      #define MT┆
0x0d80…0da0 42 53 46 20 20 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 62 61 63 6b 77 61 72   ┆BSF  2                /* backwar┆
0x0da0…0dc0 64 20 73 70 61 63 65 20 66 69 6c 65 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54 46   ┆d space file */      #define MTF┆
0x0dc0…0de0 53 52 20 20 33 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 66 6f 72 77 61 72 64 20   ┆SR  3                /* forward ┆
0x0de0…0e00 73 70 61 63 65 20 72 65 63 6f 72 64 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54 42   ┆space record */      #define MTB┆
0x0e00…0e20 53 52 20 20 34 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 62 61 63 6b 77 61 72 64   ┆SR  4                /* backward┆
0x0e20…0e40 20 73 70 61 63 65 20 72 65 63 6f 72 64 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54   ┆ space record */      #define MT┆
0x0e40…0e60 52 45 57 20 20 35 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 72 65 77 69 6e 64 20   ┆REW  5                /* rewind ┆
0x0e60…0e80 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54 4f 46 46 4c 20 36 20 20 20 20 20 20 20 20   ┆*/      #define MTOFFL 6        ┆
0x0e80…0ea0 20 20 20 20 20 20 20 20 2f 2a 20 72 65 77 69 6e 64 20 61 6e 64 20 70 75 74 20 74 68 65 20 64 72   ┆        /* rewind and put the dr┆
0x0ea0…0ec0 69 76 65 20 6f 66 66 6c 69 6e 65 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54 4e 4f   ┆ive offline */      #define MTNO┆
0x0ec0…0ee0 50 20 20 37 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 6e 6f 20 6f 70 65 72 61 74   ┆P  7                /* no operat┆
0x0ee0…0f00 69 6f 6e 3b 20 73 65 74 73 20 73 74 61 74 75 73 20 6f 6e 6c 79 20 28 75 6e 75 73 65 64 29 20 2a   ┆ion; sets status only (unused) *┆
0x0f00…0f20 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 20 20 20 20 20 20 4d 54 52 45 54 45 4e 20 20 20   ┆/      #define        MTRETEN   ┆
0x0f20…0f40 20 20 20 20 20 20 20 31 30 2f 2a 20 72 65 74 65 6e 73 69 6f 6e 20 74 61 70 65 20 28 75 6e 75 73   ┆       10/* retension tape (unus┆
0x0f40…0f60 65 64 29 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 20 20 20 20 20 20 4d 54 45 52 41   ┆ed) */      #define        MTERA┆
0x0f60…0f80 53 45 20 20 20 20 20 20 20 20 20 20 31 31 2f 2a 20 65 72 61 73 65 20 77 68 6f 6c 65 20 74 61 70   ┆SE          11/* erase whole tap┆
0x0f80…0fa0 65 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 20 20 20 20 20 20 4d 54 44 49 53 50 4c   ┆e */      #define        MTDISPL┆
0x0fa0…0fc0 20 20 20 20 20 20 20 20 20 20 31 32 2f 2a 20 63 68 61 6e 67 65 20 64 69 73 70 6c 61 79 20 69 6e   ┆          12/* change display in┆
0x0fc0…0fe0 64 69 63 61 74 6f 72 20 28 75 6e 75 73 65 64 29 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65   ┆dicator (unused) */      #define┆
0x0fe0…1000 20 20 20 20 20 20 20 20 4d 54 4e 4f 52 45 57 20 20 20 20 20 20 20 20 20 20 31 33 2f 2a 20 64 6f   ┆        MTNOREW          13/* do┆
0x1000…1020 20 6e 6f 74 20 72 65 77 69 6e 64 20 61 74 20 63 6c 6f 73 65 20 28 76 65 72 79 20 75 73 65 66 75   ┆ not rewind at close (very usefu┆
0x1020…1040 6c 21 29 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 20 20 20 20 20 20 20 4d 54 52 45 53   ┆l!) */      #define        MTRES┆
0x1040…1060 45 54 20 20 20 20 20 20 20 20 20 20 31 34 2f 2a 20 6e 6f 20 6f 70 65 72 61 74 69 6f 6e 3b 20 73   ┆ET          14/* no operation; s┆
0x1060…1080 65 74 73 20 73 74 61 74 75 73 20 6f 6e 6c 79 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20   ┆ets status only */      #define ┆
0x1080…10a0 4d 54 36 32 35 30 20 31 35 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 73 65 74 20 64   ┆MT6250 15               /* set d┆
0x10a0…10c0 65 6e 73 69 74 79 20 74 6f 20 36 32 35 30 20 62 70 69 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69   ┆ensity to 6250 bpi */      #defi┆
0x10c0…10e0 6e 65 20 4d 54 31 36 30 30 20 31 36 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 73 65   ┆ne MT1600 16               /* se┆
0x10e0…1100 74 20 64 65 6e 73 69 74 79 20 74 6f 20 31 36 30 30 20 62 70 69 20 2a 2f 0a 0a 20 20 20 20 20 2f   ┆t density to 1600 bpi */       /┆
0x1100…1120 2a 20 73 74 72 75 63 74 75 72 65 20 66 6f 72 20 4d 54 49 4f 42 55 46 46 45 52 45 44 20 2d 20 6d   ┆* structure for MTIOBUFFERED - m┆
0x1120…1140 61 67 20 74 61 70 65 20 75 73 69 6e 67 20 62 75 66 66 65 72 65 64 20 74 61 70 65 20 69 2f 6f 20   ┆ag tape using buffered tape i/o ┆
0x1140…1160 63 6f 6d 6d 61 6e 64 20 2a 2f 0a 20 20 20 20 20 73 74 72 75 63 74 20 6d 74 62 75 66 20 7b 0a 20   ┆command */      struct mtbuf {  ┆
0x1160…1180 20 20 20 20 20 20 20 20 20 75 5f 6c 6f 6e 67 20 20 20 20 6d 74 5f 62 6c 6f 63 6b 5f 73 69 7a 65   ┆         u_long    mt_block_size┆
0x1180…11a0 3b 20 20 20 2f 2a 20 74 61 70 65 20 62 6c 6f 63 6b 20 73 69 7a 65 20 28 69 6e 20 62 79 74 65 73   ┆;   /* tape block size (in bytes┆
0x11a0…11c0 29 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 73 68 6f 72 74 20 20 20 20 20 6d 74 5f 72 77 3b 20   ┆) */           short     mt_rw; ┆
0x11c0…11e0 20 20 20 20 20 20 20 20 20 20 2f 2a 20 4d 54 52 45 41 44 20 6f 72 20 4d 54 57 52 49 54 45 20 2a   ┆          /* MTREAD or MTWRITE *┆
0x11e0…1200 2f 0a 20 20 20 20 20 7d 3b 0a 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54 52 45 41 44 20 30   ┆/      };       #define MTREAD 0┆
0x1200…1220 31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 62 75 66 66 65 72 65 64 20 74 61 70 65   ┆1               /* buffered tape┆
0x1220…1240 20 69 2f 6f 20 6f 6e 20 72 65 61 64 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54 57   ┆ i/o on read */      #define MTW┆
0x1240…1260 52 49 54 45 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 32 2f 2a 20 62 75 66 66 65 72   ┆RITE                 02/* buffer┆
0x1260…1280 65 64 20 74 61 70 65 20 69 2f 6f 20 6f 6e 20 77 72 69 74 65 20 2a 2f 0a 0a 20 20 20 20 20 2f 2a   ┆ed tape i/o on write */       /*┆
0x1280…12a0 20 6d 61 67 20 74 61 70 65 20 69 6f 20 63 6f 6e 74 72 6f 6c 20 63 6f 6d 6d 61 6e 64 73 20 2a 2f   ┆ mag tape io control commands */┆
0x12a0…12c0 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54 49 4f 43 54 4f 50 20 20 20 20 20 20 20 5f 49 4f   ┆      #define MTIOCTOP       _IO┆
0x12c0…12e0 57 28 6d 2c 20 31 2c 20 73 74 72 75 63 74 20 6d 74 6f 70 29 20 2f 2a 20 64 6f 20 61 20 6d 61 67   ┆W(m, 1, struct mtop) /* do a mag┆
0x12e0…1300 20 74 61 70 65 20 6f 70 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 4d 54 49 4f 42 55 46   ┆ tape op */      #define MTIOBUF┆
0x1300…1320 46 45 52 45 44 20 20 20 5f 49 4f 52 28 6d 2c 20 33 2c 20 73 74 72 75 63 74 20 6d 74 62 75 66 29   ┆FERED   _IOR(m, 3, struct mtbuf)┆
0x1320…1340 2f 2a 20 62 75 66 66 65 72 65 64 20 74 61 70 65 20 69 2f 6f 20 2a 2f 0a 0a 0a 20 20 20 20 20 53   ┆/* buffered tape i/o */        S┆
0x1340…1360 08 53 08 53 08 53 43 08 43 08 43 08 43 53 08 53 08 53 08 53 49 08 49 08 49 08 49 20 43 08 43 08   ┆ S S SC C C CS S S SI I I I C C ┆
0x1360…1380 43 08 43 61 08 61 08 61 08 61 72 08 72 08 72 08 72 74 08 74 08 74 08 74 72 08 72 08 72 08 72 69   ┆C Ca a a ar r r rt t t tr r r ri┆
0x1380…13a0 08 69 08 69 08 69 64 08 64 08 64 08 64 67 08 67 08 67 08 67 65 08 65 08 65 08 65 20 53 08 53 08   ┆ i i id d d dg g g ge e e e S S ┆
0x13a0…13c0 53 08 53 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 61 6d   ┆S St t t tr r r re e e ea a a am┆
0x13c0…13e0 08 6d 08 6d 08 6d 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 54 08 54 08   ┆ m m mi i i in n n ng g g g T T ┆
0x13e0…1400 54 08 54 61 08 61 08 61 08 61 70 08 70 08 70 08 70 65 08 65 08 65 08 65 20 44 08 44 08 44 08 44   ┆T Ta a a ap p p pe e e e D D D D┆
0x1400…1420 72 08 72 08 72 08 72 69 08 69 08 69 08 69 76 08 76 08 76 08 76 65 08 65 08 65 08 65 73 08 73 08   ┆r r r ri i i iv v v ve e e es s ┆
0x1420…1440 73 08 73 0a 20 20 20 20 20 57 72 69 74 65 20 61 6e 64 20 72 65 61 64 20 77 69 6c 6c 20 61 6c 77   ┆s s      Write and read will alw┆
0x1440…1460 61 79 73 20 62 65 20 69 6e 20 4d 4f 44 20 35 31 32 2f 31 30 32 34 20 62 79 74 65 73 20 70 65 72   ┆ays be in MOD 512/1024 bytes per┆
0x1460…1480 0a 20 20 20 20 20 62 6c 6f 63 6b 2e 20 49 66 20 5f 08 77 5f 08 72 5f 08 69 5f 08 74 5f 08 65 20   ┆      block. If _ w_ r_ i_ t_ e ┆
0x1480…14a0 6e 75 6d 62 65 72 20 6f 66 20 62 79 74 65 73 20 69 73 20 6e 6f 74 20 4d 4f 44 20 35 31 32 2f 31   ┆number of bytes is not MOD 512/1┆
0x14a0…14c0 30 32 34 2c 20 74 68 65 0a 20 20 20 20 20 66 6f 6c 6c 6f 77 69 6e 67 20 77 69 6c 6c 20 62 65 20   ┆024, the      following will be ┆
0x14c0…14e0 64 6f 6e 65 3a 0a 0a 20 20 20 20 20 49 66 20 31 35 20 62 79 74 65 73 20 61 72 65 20 77 72 69 74   ┆done:       If 15 bytes are writ┆
0x14e0…1500 74 65 6e 2c 20 74 68 65 20 72 65 73 74 20 6f 66 20 74 68 65 20 35 31 32 20 62 79 74 65 73 20 77   ┆ten, the rest of the 512 bytes w┆
0x1500…1520 69 6c 6c 20 62 65 0a 20 20 20 20 20 66 69 6c 6c 65 64 20 75 70 20 77 69 74 68 20 75 6e 6b 6e 6f   ┆ill be      filled up with unkno┆
0x1520…1540 77 6e 20 64 61 74 61 2e 20 41 64 64 69 74 69 6f 6e 61 6c 6c 79 2c 20 69 66 20 31 35 20 62 79 74   ┆wn data. Additionally, if 15 byt┆
0x1540…1560 65 73 20 61 72 65 0a 20 20 20 20 20 72 65 61 64 20 66 72 6f 6d 20 61 20 72 65 63 6f 72 64 20 74   ┆es are      read from a record t┆
0x1560…1580 68 61 74 20 77 61 73 20 77 72 69 74 74 65 6e 20 61 73 20 35 31 32 20 62 79 74 65 73 2c 20 74 68   ┆hat was written as 512 bytes, th┆
0x1580…15a0 65 20 6f 74 68 65 72 0a 20 20 20 20 20 34 39 37 20 62 79 74 65 73 20 77 69 6c 6c 20 62 65 20 64   ┆e other      497 bytes will be d┆
0x15a0…15c0 69 73 63 61 72 64 65 64 2c 20 61 6e 64 20 74 68 65 20 6e 65 78 74 20 5f 08 72 5f 08 65 5f 08 61   ┆iscarded, and the next _ r_ e_ a┆
0x15c0…15e0 5f 08 64 20 77 69 6c 6c 20 72 65 61 64 0a 20 20 20 20 20 66 72 6f 6d 20 74 68 65 20 6e 65 78 74   ┆_ d will read      from the next┆
0x15e0…1600 20 35 31 32 20 62 79 74 65 20 74 61 70 65 20 72 65 63 6f 72 64 2e 0a 0a 20 20 20 20 20 53 70 61   ┆ 512 byte tape record.       Spa┆
0x1600…1620 63 65 20 62 6c 6f 63 6b 20 66 6f 72 77 61 72 64 20 61 6e 64 20 72 65 76 65 72 73 65 20 77 69 6c   ┆ce block forward and reverse wil┆
0x1620…1640 6c 20 6e 6f 74 20 62 65 20 70 6f 73 73 69 62 6c 65 2e 20 49 66 20 69 74 0a 20 20 20 20 20 69 73   ┆l not be possible. If it      is┆
0x1640…1660 20 61 74 74 65 6d 70 74 65 64 20 74 6f 20 65 78 65 63 75 74 65 20 61 20 73 70 61 63 65 20 63 6f   ┆ attempted to execute a space co┆
0x1660…1680 6d 6d 61 6e 64 2c 20 69 74 20 77 69 6c 6c 20 62 65 20 69 67 6e 6f 72 65 64 0a 0a 0a 0a 0a 0a 0a   ┆mmand, it will be ignored       ┆
0x1680…16a0 20 20 20 20 20 61 6e 64 20 61 20 6d 65 73 73 61 67 65 20 77 69 6c 6c 20 62 65 20 73 65 6e 64 20   ┆     and a message will be send ┆
0x16a0…16c0 74 6f 20 74 68 65 20 63 6f 6e 73 6f 6c 65 2e 20 20 54 68 65 20 72 65 61 73 6f 6e 20 66 6f 72 0a   ┆to the console.  The reason for ┆
0x16c0…16e0 20 20 20 20 20 74 68 69 73 20 69 73 20 74 68 61 74 20 74 68 65 20 53 43 53 49 20 74 61 70 65 20   ┆     this is that the SCSI tape ┆
0x16e0…1700 64 72 69 76 65 72 20 61 6c 77 61 79 73 20 75 73 65 73 20 61 20 66 69 78 65 64 20 62 6c 6f 63 6b   ┆driver always uses a fixed block┆
0x1700…1720 0a 20 20 20 20 20 73 69 7a 65 20 6f 66 20 35 31 32 2f 31 30 32 34 20 62 79 74 65 73 20 70 65 72   ┆      size of 512/1024 bytes per┆
0x1720…1740 20 62 6c 6f 63 6b 2c 20 62 75 74 20 54 58 20 63 61 6e 20 75 73 65 20 61 6e 79 20 73 69 7a 65 0a   ┆ block, but TX can use any size ┆
0x1740…1760 20 20 20 20 20 62 65 74 77 65 65 6e 20 34 20 62 79 74 65 73 20 61 6e 64 20 36 34 20 4b 62 79 74   ┆     between 4 bytes and 64 Kbyt┆
0x1760…1780 65 73 20 70 65 72 20 62 6c 6f 63 6b 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45   ┆es per block.  S S S SE E E EE E┆
0x1780…17a0 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08   ┆ E E A A A AL L L LS S S SO O O ┆
0x17a0…17c0 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 31 29 3a 20 20 63 70 69 6f 2c   ┆O      User Commands (1):  cpio,┆
0x17c0…17e0 20 6d 74 2c 20 74 61 72 2c 20 74 70 0a 20 20 20 20 20 53 79 73 74 65 6d 20 4d 61 6e 61 67 65 72   ┆ mt, tar, tp      System Manager┆
0x17e0…1800 20 43 6f 6d 6d 61 6e 64 73 20 28 38 29 3a 20 6d 6b 6e 6f 64 0a 0a 44 65 63 65 6d 62 65 72 20 31   ┆ Commands (8): mknod  December 1┆
0x1800…1820 39 39 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58   ┆990                           TX┆
0x1820…1840 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a   ┆ Programmer's Reference         ┆
0x1840…1860 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a   ┆                                ┆
0x1860…186a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                                                                     ┆          ┆