On Tue, Mar 14 2000, Matthew Dharm wrote:
> Unfortunately, for USB Mass Storage, getting an accurate idea of how much
> data there is to transfer (especially for commands that can only transfer
> a fixed amount of information) is very important.  So far, this is the
> only case I've found where it's wrong, and I'm afraid I don't have the
> time to discover where is is going wrong before 2.4.0

This must be a loose requirement, I hope.

> Would someone who is more familiar with these layer (Eric?  someone else?)
> please fix this?  And let me know when you do so I can test it.  I imagine
> that it's probably, as you indicate, just a quick little fix to some relic
> code.  Hopefully we can get this in before 2.4.0

Ok, fixes attached for sr to set transfer length correctly for READ_CAPACITY.
SD already does this correctly.

I assume that you meant CD-ROM then?

-- 
*  Jens Axboe <[EMAIL PROTECTED]>
*  Linux CD-ROM Maintainer
*  http://www.kernel.dk
--- sr.c~       Tue Mar 14 21:22:20 2000
+++ sr.c        Tue Mar 14 21:22:37 2000
@@ -498,7 +498,7 @@
 
                SRpnt->sr_data_direction = SCSI_DATA_READ;
                scsi_wait_req(SRpnt, (void *) cmd, (void *) buffer,
-                             512, SR_TIMEOUT, MAX_RETRIES);
+                             8, SR_TIMEOUT, MAX_RETRIES);
 
                the_result = SRpnt->sr_result;
                retries--;

Reply via email to