lkml.org 
[lkml]   [2012]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [ 38/48] SCSI & usb-storage: add try_rc_10_first flag
On Tue, 3 Jul 2012, Matthew Wilcox wrote:

> I think the necessary algorithm is simpler than that:
>
> Send RC10 (unless the device supports PI, in which case it's probably
> enterprisey and well-tested)
> Send RC16
> If RC10 capacity agrees with RC16 capacity, use extra RC16 data.
> (for values of "agrees with" that include the "-1 to use RC16" indicator)
>
> Sure, it's one extra command, but really, who cares?

Well, some USB devices might care. Right now we don't send RC16 to
them at all because they get RC10 first and it indicates a capacity
below 2 TB.

In the end, usb-storage may be forced to use the NO_READ_CAPACITY_16
flag with all devices except those we can positively identify as a
USB-(S)ATA bridge.

Alan Stern



\
 
 \ /
  Last update: 2012-07-06 00:01    [W:0.091 / U:31.724 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site