Hi Alan!

On Don, 25 Mai 2006, Alan Stern wrote:
> If you want to try an interesting test, go back to the
> usb_stor_invoke_transport() routine in transport.c, just above the
> Handle_Errors line.  Where it says:
> 
>       /* Did we transfer less than the minimum amount required? */
>       if (srb->result == SAM_STAT_GOOD &&
>                       srb->request_bufflen - srb->resid < srb->underflow)
>               srb->result = (DID_ERROR << 16) | (SUGGEST_RETRY << 24);
> 
> If the conditional succeeds, have it call msleep(1000) as well as setting 
> srb->result.  This delay may allow the drive to flush its buffers and get 
> ready to accept more data.

Should I run the copy test with or without usbmon after this change?

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
TORLUNDY (n.) Narrow but thickly grimed strip of floor between the
fridge and the sink unit in the kitchen of a rented flat.
                        --- Douglas Adams, The Meaning of Liff


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to