Date: Mon, 27 Jul 2009 20:32:28 +0200 From: Olivier SMEDTS <olivier@gid0.org> To: gary.jennejohn@freenet.de Cc: freebsd-current@freebsd.org Subject: Re: Disable root mount waiting for USB Message-ID: <367b2c980907271132o50dca55dyc78d81343f3bf349@mail.gmail.com> In-Reply-To: <20090727165049.6ec26936@ernst.jennejohn.org> References: <367b2c980907270358g45a2497dh64c2734721c44fca@mail.gmail.com> <20090727165049.6ec26936@ernst.jennejohn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
2009/7/27 Gary Jennejohn <gary.jennejohn@freenet.de>:
> On Mon, 27 Jul 2009 12:58:18 +0200
> Olivier SMEDTS <olivier@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. =A0The routine which registers what to wait for (vfs_mount.c:root_mou=
nt_hold())
> is called uncondtionally.
Right, I had to comment it :)
Index: sys/dev/usb/controller/usb_controller.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- sys/dev/usb/controller/usb_controller.c (r=E9vision 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 =3D root_mount_hold(device_get_nameunit(dev));
+ //bus->bus_roothold =3D root_mount_hold(device_get_nameunit(dev));
if (usb_post_init_called) {
mtx_lock(&Giant);
>
> ---
> Gary Jennejohn
>
--=20
Olivier Smedts _
ASCII ribbon campaign ( )
e-mail: olivier@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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?367b2c980907271132o50dca55dyc78d81343f3bf349>
