From: cja@chmist.zso.dec.com (Carl J. Appellof)
Subject: Re: closing an open tape WITHOUT writing eof's.
Date: 13 Oct 1994 22:33:52 GMT [thread overview]
Message-ID: <37kckg$oe8$1@usenet.pa.dec.com> (raw)
In-Reply-To: 37gb7i$cmr@ccnet.ccnet.com
Daniel Garcia (kender@leviathan.ccnet.com) wrote:
: I have a program that opens the tape device, and using the mtio ioctl
: calls, controls the tape (as well as using read/write to manage data
: on the tape). In addition to managing the placement of data, i'm also
: placing my own EOF markers. However, as I was reading through the man
: page for mtio, it says that when i close the tape device, it deposits
: two EOF markers of it's own. Is there any way to prevent this from
: happeneing?
If you write your own EOF mark, and then close the device, OSF/1
will not write any EOF marks. The only time that OSF/1 writes EOF
marks for you is if you do a write() followed immediately by close().
In that case it writes 2 EOFs to mark the end of tape. There is no
way to prevent this.
--
Carl J. Appellof (cja@chmist.zso.dec.com)
Storage Management Group
POLYCENTER NetWorker Save and Restore
Digital Equipment Corporation
prev parent reply other threads:[~1994-10-13 22:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-10-12 9:45 closing an open tape WITHOUT writing eof's Daniel Garcia
1994-10-13 22:33 ` Carl J. Appellof [this message]
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