Disable root mount waiting for USB
Olivier SMEDTS
olivier at gid0.org
Mon Jul 27 18:32:30 UTC 2009
2009/7/27 Gary Jennejohn <gary.jennejohn at freenet.de>:
> On Mon, 27 Jul 2009 12:58:18 +0200
> Olivier SMEDTS <olivier at gid0.org> wrote:
>
>> Is there a way (loader tunable or kernel config) to disable the root
>> mount waiting for USB buses and devices and make it behave just like
>> in the first days of the new USB stack ?
>>
>> Thanks !
>>
>
> No. The routine which registers what to wait for (vfs_mount.c:root_mount_hold())
> is called uncondtionally.
Right, I had to comment it :)
Index: sys/dev/usb/controller/usb_controller.c
===================================================================
--- sys/dev/usb/controller/usb_controller.c (révision 195903)
+++ sys/dev/usb/controller/usb_controller.c (copie de travail)
@@ -133,7 +133,7 @@
}
/* delay vfs_mountroot until the bus is explored */
- bus->bus_roothold = root_mount_hold(device_get_nameunit(dev));
+ //bus->bus_roothold = root_mount_hold(device_get_nameunit(dev));
if (usb_post_init_called) {
mtx_lock(&Giant);
>
> ---
> Gary Jennejohn
>
--
Olivier Smedts _
ASCII ribbon campaign ( )
e-mail: olivier at gid0.org - against HTML email & vCards X
www: http://www.gid0.org - against proprietary attachments / \
"Il y a seulement 10 sortes de gens dans le monde :
ceux qui comprennent le binaire,
et ceux qui ne le comprennent pas."
More information about the freebsd-current
mailing list