From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dd9a53ee52218e61 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-13 20:16:24 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!zip.eecs.umich.edu!caen!crl.dec.com!crl.dec.com!pa.dec.com!chmist.zso.dec.com!cja From: cja@chmist.zso.dec.com (Carl J. Appellof) Newsgroups: comp.unix.osf.osf1 Subject: Re: closing an open tape WITHOUT writing eof's. Date: 13 Oct 1994 22:33:52 GMT Organization: Digital Equipment Corporation, Palo Alto, CA, USA Message-ID: <37kckg$oe8$1@usenet.pa.dec.com> References: <37gb7i$cmr@ccnet.ccnet.com> NNTP-Posting-Host: chmist.zso.dec.com X-Newsreader: TIN [version 1.2 PL2] 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