Can't cat tape- big blocks?

Chris Torek torek at elf.ee.lbl.gov
Wed Jun 19 05:46:00 AEST 1991


In article <1991Jun14.094822.7029 at prl.dec.com> boyd at 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 at ee.lbl.gov



More information about the Comp.unix.questions mailing list