lkml.org 
[lkml]   [2008]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: usb hdd problems with 2.6.27.2
From
Date
On Mon, 2008-10-27 at 11:25 -0400, Alan Stern wrote:
> On Mon, 27 Oct 2008, Douglas Gilbert wrote:
> > BTW a single disk in RAID 0 (seen on a HP E200 controller)
> > has a shortened capacity value seen in the midlevel on the
> > corresponding logical drive. That missing chunk is probably
> > where the RAID controller puts its control information.
> > Anyway, playing with the capacity value returned by READ
> > CAPACITY certainly has a precedent.
>
> usb-storage isn't in the business of altering the data it gets from a
> device. It's just a transport. That's why the sdev->fix_capacity flag
> exists; we tell the upper layer that the data it gets is going to be
> wrong and let the upper layer worry about fixing things up.

And you do this by setting US_FL_FIX_CAPACITY in unusual_devs.h

James




\
 
 \ /
  Last update: 2008-10-27 16:35    [W:0.145 / U:0.536 seconds]
©2003-2014 Jasper Spaans. Advertise on this site