Re: usb hdd problems with 2.6.27.2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Douglas Gilbert
Date: Monday, October 27, 2008 - 7:56 am

Alan Stern wrote:

Since the READ CAPACITY "off by one" error is so common,
perhaps drivers such as usb-storage could have a hook to
do a pseudo READ CAPACITY. Then if the capacity value
looked odd (in both senses) the driver could do an IO to
the suspect block and if that failed decrement the capacity
value passed back to the mid level.
Put another way, why don't these defective devices trip up
another OS?

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.


I know that happens but it seems strange that upper levels
are reading a block that has never been written to. Read ahead?

Doug Gilbert



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
usb hdd problems with 2.6.27.2, Luciano Rocha, (Wed Oct 22, 9:22 am)
Re: usb hdd problems with 2.6.27.2, Rafael J. Wysocki, (Sat Oct 25, 12:25 pm)
Re: usb hdd problems with 2.6.27.2, Alan Stern, (Sat Oct 25, 12:50 pm)
Re: usb hdd problems with 2.6.27.2, James Bottomley, (Sat Oct 25, 1:11 pm)
Re: usb hdd problems with 2.6.27.2, Luciano Rocha, (Sun Oct 26, 7:05 am)
Re: usb hdd problems with 2.6.27.2, Luciano Rocha, (Mon Oct 27, 4:14 am)
Re: usb hdd problems with 2.6.27.2, Luciano Rocha, (Mon Oct 27, 4:28 am)
Re: usb hdd problems with 2.6.27.2, Alan Stern, (Mon Oct 27, 7:24 am)
Re: usb hdd problems with 2.6.27.2, Douglas Gilbert, (Mon Oct 27, 7:56 am)
Re: usb hdd problems with 2.6.27.2, Boaz Harrosh, (Mon Oct 27, 8:08 am)
Re: usb hdd problems with 2.6.27.2, Luciano Rocha, (Mon Oct 27, 8:18 am)
Re: usb hdd problems with 2.6.27.2, Alan Stern, (Mon Oct 27, 8:25 am)
Re: usb hdd problems with 2.6.27.2, James Bottomley, (Mon Oct 27, 8:33 am)
Re: usb hdd problems with 2.6.27.2, Alan Stern, (Mon Oct 27, 8:38 am)
Re: usb hdd problems with 2.6.27.2, Kay Sievers, (Mon Oct 27, 9:26 am)
Re: usb hdd problems with 2.6.27.2, Luciano Rocha, (Mon Oct 27, 9:53 am)
Re: usb hdd problems with 2.6.27.2, Alan Stern, (Mon Oct 27, 1:10 pm)
Re: usb hdd problems with 2.6.27.2, Alan Stern, (Mon Oct 27, 1:36 pm)
Re: usb hdd problems with 2.6.27.2, Luciano Rocha, (Tue Oct 28, 9:37 am)
Re: usb hdd problems with 2.6.27.2, Alan Stern, (Tue Oct 28, 10:38 am)
Re: usb hdd problems with 2.6.27.2, Luciano Rocha, (Mon Nov 3, 8:52 am)
Re: usb hdd problems with 2.6.27.2, Alan Stern, (Mon Nov 3, 12:46 pm)
Re: usb hdd problems with 2.6.27.2, Luciano Rocha, (Wed Nov 5, 3:26 am)
Re: usb hdd problems with 2.6.27.2, Alan Stern, (Wed Nov 5, 9:51 am)
Re: usb hdd problems with 2.6.27.2, Luciano Rocha, (Thu Nov 13, 10:10 am)