Re: Need to know when usb drive probing finished

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 23, 2012 at 09:04:28AM +0800, Barry Kauler wrote:
> Greg has closed my bug report "Need printk's in
> drivers/usb/storage/usb.c" that I posted early in 2010:
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=15332
> 
> The printk's were removed in kernel 2.6.33. Puppy Linux has always
> relied upon them for the 'init' script to determine when the kernel
> has finished probing for USB drives. The way our init script works, we
> need to know this.
> 
> The thing is, our init script needs to know that information, how many
> drives found, and waits on all "usb-storage: device scan complete"
> messages.
> 
> When those printks were removed, fair enough, but nobody could tell us
> what the alternative is. How else do we get that same information at
> bootup?

You can't rely on that message for anything really "being done", so
while it seems to work for you, it might fail if a new device is
suddenly discovered by the USB hardware just after it was printed out.

Like was mentioned, please use udev for your boot procedure, it solves
this problem for you.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux