On Sat, 15 Apr 2000, Matthew Jacob wrote:
>
> > Should we perhaps have turned that into *TWO* SCSI Write() commands?
>
> Never, ever, ever, ever do this unless the tape is in fixed block mode to
> begin with.
>
I agree. One write() in variable block mode must only write one tape
block.
> Also, you can issue the READ BLOCK LIMITS command to get the range of allowed
> block sizes for a device. The high end AMPEX drives don't get up to speed
> until you start writing > 256KB blocks.
>
The driver reads the block limits when the device is opened and it checks
that the block size for fixed block mode does not exceed these limits. In
variable block mode the check is left for the drive. The user sees the
error anyway.
If the driver would check the byte count against the limits, the driver
could return EINVAL instead of EIO. But would this added code actually
help anyone?
Kai
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]