* closing an open tape WITHOUT writing eof's.
@ 1994-10-12 9:45 Daniel Garcia
1994-10-13 22:33 ` Carl J. Appellof
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Garcia @ 1994-10-12 9:45 UTC (permalink / raw)
Hello alls,
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?
Thanks in advance (posted or email replies both taken :)
D
--
___________________________________________________________________________
/Daniel Garcia/Soon to be PhD Student/dgarcia@cohl.llnl.gov/kender@esu.edu /
/Linux Hacker/C Programmer for Hire /#include <disclaimer>/The Answer's 42/|
,-------------+----------------------+---------------------+-------------- + |
|I wake up scared, I wake up strange, I wake up wondering if anything in my| |
| life is ever gunna change, I wake up scared, I wake up strange, and | /
| everything around me stays the same... |/
`--------------------------------------------------------------------------'
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: closing an open tape WITHOUT writing eof's.
1994-10-12 9:45 closing an open tape WITHOUT writing eof's Daniel Garcia
@ 1994-10-13 22:33 ` Carl J. Appellof
0 siblings, 0 replies; 2+ messages in thread
From: Carl J. Appellof @ 1994-10-13 22:33 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-10-13 22:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-12 9:45 closing an open tape WITHOUT writing eof's Daniel Garcia
1994-10-13 22:33 ` Carl J. Appellof
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox