tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Neil R. Smith" <neils@ariel.met.tamu.edu>
Subject: confusing fsf, seod, tape positioning
Date: Mon, 24 Jun 2002 17:58:54 -0500	[thread overview]
Message-ID: <3D17A42E.73A2FCAB@ariel.met.tamu.edu> (raw)

What does "mt -f [ntape device] seod" do? 
Experiment: Tru64 5.1A
> mt rewind (only one tape device: a COMPAQ DLT7000)
> tar cf /dev/ntape/tape0_d1 dir1
> tar cf /dev/ntape/tape0_d1 dir2
> tar cf /dev/ntape/tape0_d1 dir3
> mt rewind
> mt -f /dev/ntape/tape0_d1 seod
> tar cf /dev/ntape/tape0_d1 dir4

Tapex -m says there's only 3 files on the tape.
Plus:
> mt rewind
> mt -f /dev/ntape/tape0_d1 fsf 3
> tar tf /dev/ntape/tape0_d1  gives 'no data'

BUT!:
> mt rewind
> mt -f /dev/ntape/tape0_d1 seod
> mt -f /dev/ntape/tape0_d1 bsf 3
> mt -f /dev/ntape/tape0_d1 fsf 1
> tar tf /dev/ntape/tape0_d1    will read the dir4 tape archive 
AND
> mt rewind
> mt -f /dev/ntape/tape0_d1 seod
> mt -f /dev/ntape/tape0_d1 bsf 5  (!?)
> mt -f /dev/ntape/tape0_d1 fsf 1
> tar tf /dev/ntape/tape0_d1    will read the dir3 tape archive 

This is maddening, at least in part because I can't seem to locate
comprehensive documentation on EOF writes and how/when they
are implemented by utilities like tar and vdump/vrestore. I have
more familiarity with other unix flavors wherein each utility
or mt 'fsf' or 'bsf' always leaves you on the end-of-tape side
of an EOF ready to read or write.

Anyone know what's going on here? 
Thanks, -Neil
-- 
Neil R. Smith, Comp. Sys. Mngr.		neils@ariel.met.tamu.edu
Dept. Atmospheric Sci., Texas A&M Univ.	979/845-6272 FAX:979/862-4466


                 reply	other threads:[~2002-06-24 22:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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