[2339] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: "read defect list" with 2.0.30-pre7 and patch Aug19

daemon@ATHENA.MIT.EDU (Gerard Roudier)
Mon Aug 25 04:26:18 1997

Date: 	Mon, 25 Aug 1997 10:20:49 +0200 (MET DST)
From: Gerard Roudier <groudier@club-internet.fr>
To: Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>
cc: Doug Ledford <dledford@dialnet.net>, Leonard Zubkoff <lnz@dandelion.com>,
        linux-scsi@vger.rutgers.edu
In-Reply-To: <629399D120F@rkdvmks1.ngate.uni-regensburg.de>


Hmmm... The linux aic7xxx driver seems to have severe problems on 
data overrun, but such a situation in indeed very rare and in my 
opinion the culprit is the scsi ioctl code.

This code just truncates the user data size without updating the size 
that will be sent to the device. I remember that the same problem 
affects the sg driver code. The difference is that the sg driver allows 
some big buffer to be used. The fix is obviously not to update the size 
in the scsi command but to allows to transfer up to the user wished size.
I've got this problem years ago with my first SCSI disk that was an 
IBM S12.

Large defect lists are not uncommon nowadays with large capacity disks.
The current linux scsi ioctl and generic code must should be stated as
'not useable' for getting defect lists in my opinion.


Gerard.


home help back first fref pref prev next nref lref last post