tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: mt status command
@ 1995-04-25 13:53 Chantelle Keller
  0 siblings, 0 replies; only message in thread
From: Chantelle Keller @ 1995-04-25 13:53 UTC (permalink / raw)
  To: tru64-unix-managers

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               */
> };
> -----------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-04-25 13:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-25 13:53 SUMMARY: mt status command Chantelle Keller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox