Re: [RFC/PATCH] usb-storage: wait for device scanning before mounting root

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Dharm
Date: Thursday, April 24, 2008 - 4:30 pm

On Thu, Apr 24, 2008 at 03:56:04PM -0700, Greg KH wrote:
e kernel
ete before
ameter
NC
it.
ing root V2
rnel
before

This also has all sorts of races between do_mounts 'waiting' and the actual
USB device enumeration.  It's entirely possible that the kernel loads via
BIOS, the USB drivers are loaded, that forces devices to disconnect/reset,
and they take a while to re-enumerate.  During that delay, the kernel gets
to do_mount; now, no devices show in this "waiting for scan" count.

The right way to do this is via initrd and something like devlabel to wait
for a specific device to appear.  On some systems, you may want to wait for
several devices to appear.

I don't like this either.

Matt

--=20
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.=
net=20
Maintainer, Linux USB Mass Storage Driver

What, are you one of those Microsoft-bashing Linux freaks?
					-- Customer to Greg
User Friendly, 2/10/1999
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC/PATCH] usb-storage: wait for device scanning befo ..., Matthew Dharm, (Thu Apr 24, 4:30 pm)