Hi there!
I have a question regarding clearing DMA buffers when dealing with mag-
netic tape -- namely, how? I've R'd TFM and TFM doesn't say one GDT
about how to clear the buffers such that one does not write garbage
onto the next tape of a multi-tape set. For the curious, I'm trying
to implement a tape handler which functions as follows:
First tape:
write volume header
write file info
write file data
** potentially short block at end of tape **
Subsequent tapes:
write volume header
rewrite the block in its entirety
continue writing files
** potentially short block at end of tape **
OS, Machine are pretty much irrelevant, I think, as I'm looking for something
somewhat portable. If it matters, I'm testing this on a VAX, a Pyramid,
and a Sun 3/180 with half-inch reel tape, and a Sun 3/50 with quarter-inch
cartridge tape.
Any help is appreciated. I keep trying to capture the residual count
and read the excess off into a junk buffer so that nothing remains to be
read, but I'd like some way of just discarding the contents of the buffer.
And yes, the SCSI drive *does* seem to hang on to some data.
--
# "Religion is a weapon invented by the sheep to keep the wolves in line."