tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* confusing fsf, seod, tape positioning
@ 2002-06-24 22:58 Neil R. Smith
  0 siblings, 0 replies; only message in thread
From: Neil R. Smith @ 2002-06-24 22:58 UTC (permalink / 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


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

only message in thread, other threads:[~2002-06-24 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-24 22:58 confusing fsf, seod, tape positioning Neil R. Smith

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