Re: usb hdd problems with 2.6.27.2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Monday, October 27, 2008 - 8:25 am

On Mon, 27 Oct 2008, Douglas Gilbert wrote:


We thought of that years ago.  Unfortunately there is no reliable way
of telling when a capacity value is wrong.  There definitely do exist
disks with an odd number of sectors.

Furthermore, doing I/O to a suspect block is not a good idea.  There
are plenty of devices which simply crash when you try to access a
nonexistent sector.


I imagine they do.  However Linux has partition code that stores
information in the last sector of a partition (EFI GUID and md, for
example).  Other OS's apparently do not try to access the medium's last
sector under most circumstances.


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.


No, partition scanning.  Also maybe /lib/udev/vol_id, which seems to 
read an inordinate number of irrelevant sectors.

Alan Stern

--
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)