Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!spool.mu.edu!agate!pasteur!dog.ee.lbl.gov!elf.ee.lbl.gov!torek From: torek@elf.ee.lbl.gov (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: Can't cat tape- big blocks? Message-ID: <14433@dog.ee.lbl.gov> Date: 18 Jun 91 19:46:00 GMT References: <803@adpplz.UUCP> <1991Jun14.094822.7029@prl.dec.com> Reply-To: torek@elf.ee.lbl.gov (Chris Torek) Distribution: usa Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 12 X-Local-Date: Tue, 18 Jun 91 12:46:00 PDT In article <1991Jun14.094822.7029@prl.dec.com> boyd@prl.dec.com (Boyd Roberts) writes: >No, never do that. With 9 track tapes you must do I/O that will >ensure that the _whole_ tape block will be read. ... It seems to me that the tape driver should return an error if you ask for 1K and the tape drive reads 10K. Unfortunately, there is no obvious errno for this (ENOMEM? EINVAL? E2BIG? EFBIG? EMSGSIZE? ENOBUFS?). -- In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427) Berkeley, CA Domain: torek@ee.lbl.gov