From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075319106592.tru64-unix-managers.marc@archive.invalid> From: Chantelle Keller Date: Tue, 25 Apr 1995 13:53:46 +0000 To: tru64-unix-managers Subject: SUMMARY: mt status command X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075319106592 Thanks to Markus Baur for answering my question about whether the 'mt status' command gives information about tape file number (unfortunately it wasn't the answer I wanted to hear!) Chantelle Keller > > have a look at the header files > > /usr/include/sys/mtio.h > /usr/include/sys/devio.h > > There is all info the device driver gives us. Especially when you look at the > `mtget' structure (see below), you will notice that DEC machines don't have a > field `mt_fileno' like the Suns. If you need some explanations for the `mt status' > command, in devio.h are some comments and constants that give some hints what all > the fields mean. > > Best Regards, > Markus > > ----------------------- /usr/include/sys/mtio.h (SUN) ----------------------- > /* structure for MTIOCGET - mag tape get status command */ > struct mtget { > short mt_type; /* type of magtape device */ > /* the following two registers are grossly device dependent */ > short mt_dsreg; /* ``drive status'' register */ > short mt_erreg; /* ``error'' register */ > /* optional error info. */ > daddr_t mt_resid; /* residual count */ > daddr_t mt_fileno; /* file number of current position */ > daddr_t mt_blkno; /* block number of current position */ > u_short mt_flags; > short mt_bf; /* optimum blocking factor */ > }; > ----------------------- /usr/include/sys/mtio.h (DEC) ----------------------- > /* Structure for MTIOCGET ioctl - mag tape get status command */ > struct mtget { > short mt_type; /* Type of device defined below */ > short mt_dsreg; /* ``drive status'' register */ > short mt_erreg; /* ``error'' register */ > short mt_resid; /* Residual count */ > }; > -----------------------------------------------------------------------------