From owner-freebsd-current@FreeBSD.ORG Mon Jul 27 18:32:30 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1AF7106564A for ; Mon, 27 Jul 2009 18:32:30 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by mx1.freebsd.org (Postfix) with ESMTP id 480218FC12 for ; Mon, 27 Jul 2009 18:32:30 +0000 (UTC) (envelope-from olivier@gid0.org) Received: by bwz19 with SMTP id 19so2715155bwz.43 for ; Mon, 27 Jul 2009 11:32:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.124.19 with SMTP id s19mr3439045bkr.6.1248719548587; Mon, 27 Jul 2009 11:32:28 -0700 (PDT) In-Reply-To: <20090727165049.6ec26936@ernst.jennejohn.org> References: <367b2c980907270358g45a2497dh64c2734721c44fca@mail.gmail.com> <20090727165049.6ec26936@ernst.jennejohn.org> Date: Mon, 27 Jul 2009 20:32:28 +0200 Message-ID: <367b2c980907271132o50dca55dyc78d81343f3bf349@mail.gmail.com> From: Olivier SMEDTS To: gary.jennejohn@freenet.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: Disable root mount waiting for USB X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 18:32:30 -0000 2009/7/27 Gary Jennejohn : > On Mon, 27 Jul 2009 12:58:18 +0200 > Olivier SMEDTS 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."