On Mon, 6 Mar 2006 10:36:49 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote:

> >   33     0       7840 hde
> >   33     1       7792 hde1
> 
> Those "#blocks" values are in 1-KB blocks.  The FIX_CAPACITY flag 
> decreases the number of 512-byte sectors.  So you'd expect to see the same 
> #blocks value regardless of whether the capacity was too high by a sector.

Yes, indeed, I was wrong. The device passes the ATA size inside
a SCSI packet, how typical. On a card with 15680 sectors, this happens:

dc505164 2578550680 S Bo:009:02 -115 31 = 55534243 31010000 08000000 80000a25 
00000000 00000000 00000000 000000 dc505164 2578550870 C Bo:009:02 0 31 >
dc505164 2578550889 S Bi:009:02 -115 8 <
dc505164 2578551119 C Bi:009:02 0 8 = 00003d40 00000200
dc505164 2578551135 S Bi:009:02 -115 13 <
dc505164 2578551244 C Bi:009:02 0 13 = 55534253 31010000 00000000 00

I used this reader for so long without the capacity fix that I was
skeptical at first.

-- Pete


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&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