From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Neil R. Smith" Newsgroups: gmane.os.tru64.managers Subject: confusing fsf, seod, tape positioning Date: Mon, 24 Jun 2002 17:58:54 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3D17A42E.73A2FCAB@ariel.met.tamu.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1024960245 8474 127.0.0.1 (24 Jun 2002 23:10:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 24 Jun 2002 23:10:45 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17Mcyq-0002CZ-00 for ; Tue, 25 Jun 2002 01:10:45 +0200 Original-Received: (qmail 688 invoked by uid 5); 24 Jun 2002 22:59:02 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 680 invoked from network); 24 Jun 2002 22:59:02 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 24 Jun 2002 22:59:02 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GY800IRKFUD1D@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 24 Jun 2002 18:59:01 -0400 (EDT) Original-Received: from ariel.met.tamu.edu (ariel.met.tamu.edu [128.194.104.175]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GY800J1RFU7NI@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 24 Jun 2002 18:58:56 -0400 (EDT) Original-Received: from ariel.met.tamu.edu (gilgal [128.194.104.225]) by ariel.met.tamu.edu (8.8.8+Sun/8.8.8) with ESMTP id RAA27837 for ; Mon, 24 Jun 2002 17:58:53 -0500 (CDT) Original-To: tru64-unix-managers@ornl.gov X-Mailer: Mozilla 4.7 [en] (X11; U; IRIX 6.2 IP22) X-Accept-Language: en Xref: main.gmane.org gmane.os.tru64.managers:678 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:678 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