Subject: Re: datalen in scsi cmds
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Dave Huang <khym@bga.com>
List: tech-kern
Date: 08/05/1998 14:18:02
On Wed, 5 Aug 1998, Manuel Bouyer wrote:
> While working on DMA for atapi devices, I  noticed that some scsi
> drivers actually uses unions for data returned by these commands.
> The result is that the datalen passed may be greater than the real
> size of the transfert (some audio CD commands do this).
> Could't this break with some SCSI adapters drivers ? This is also the

This might not be exactly the same, but the ncr driver has trouble with
the st driver's MTIOC[SH]LOCATE ioctls. The ioctl passes in the size of
a union which is 6 bytes longer than the actual size of the command. 
(See http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=5306)
-- 
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 22 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++