diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-14 05:56:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-14 05:56:36 +0000 |
commit | e93cc51fa192019968437d7a2333e9004e271cb2 (patch) | |
tree | c6454b15b3665702af5390ee0f7bc02dd9eaf4ad /usr.bin/env | |
parent | d598ffe508546eaad4314b05f1e7922ba2bd6914 (diff) |
from netbsd:
If the read or write request can fit into a 6-byte cdb, then
use a 6-byte cdb, otherwise use the 10-byte as before.
In sdattach(), make a note if the device is "ancient" (i.e.
inqbuf.version & SID_ANSII == 0).
Implement sdminphys(): if the device is "ancient", shorten the
transfer so it will fit into a 6-byte cdb.
In sdminphys(), add a comment about the semantics of the "length" field
in a 6-byte read/write cdb (namely, length == 0 really means 256), and
that we handle this conservatively by limiting the transfer to 255 blocks.
*sigh* One just never knows how a pre-scsi-1 device is going to behave.
Remove a couple of now unneeded assignments.
Diffstat (limited to 'usr.bin/env')
0 files changed, 0 insertions, 0 deletions