Subject: scsi mid-layer/driver interface question
To: None <tech-kern@netbsd.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-kern
Date: 06/02/2002 11:07:40
--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I noticed that the Amiga siop2 driver doesn't handle ignore wide residue
messages. What's worse, it seems to synthesize the data length passed up
to the mid-layer, setting xs->resid to 0 (with a big /* XXXX */), thus
pretending the full data where transferred if all went well. This might
work for normal disk transfers, but is certainly a dangerous assumption
when looking at, say, VPP data or when reading from tape drives...

How is a driver supposed to tell the mid layer how many bytes where read=20
or written?

Regards,
	-is
--=20
seal your e-mail: http://www.gnupg.org/

--RnlQjJ0d97Da+TV1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8+eBcPCRcZ/VMtk4RAj3JAJ9f6K8jftF4MZiIsOSBVFzBCCoJIACgiyjP
+BqwZZkmdYtkvgIoYjRykf4=
=Npwq
-----END PGP SIGNATURE-----

--RnlQjJ0d97Da+TV1--