Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Determining tape position of exabyte tape using mtio?
@ 1997-04-30  4:00 Mats Bergstrom
  0 siblings, 0 replies; only message in thread
From: Mats Bergstrom @ 1997-04-30  4:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 922 bytes --]


I am currently proting a program from Solaris to OSF/1 4.0.
This program makes use of mtio to determine the tape position:

  struct  mtget x;
  int i;

  i = ioctl( t->fd, MTIOCGET, &x);
  if ( i == 0 ) {
    t->marks = x.mt_fileno;
    t->block = x.mt_blkno;
  }

the OSF/1 4.0 version of `struct mtget' does not contain the `mt_fileno' or
`mt_blkno'.  A frustrated search through the manpages (ioctl, mtio, mt, etc)
gives no hint on how to probe the tape device for this kind of information.

Is there anyone who has any idea as of how to proceed?

	/Mats

-- 
==============================================================================
Mats Bergstr�m              Niels Bohr Institute Tandem Accelerator Laboratory

PGP:  1024/272C9B65 1995/07/04 Mats Bergstrom <mb@talws10.nbi.dk>
Key fingerprint:  90 A8 3F 25 BE 2F 73 EF  A4 69 33 3D F5 2F 79 BC 
Key location   : <html://wwwtal.nbi.dk/~mb/Misc/pgp.html>





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

only message in thread, other threads:[~1997-04-30  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-30  4:00 Determining tape position of exabyte tape using mtio? Mats Bergstrom

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