From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 14 21:13:13 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB7B0106564A for ; Mon, 14 Jul 2008 21:13:13 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 9A6EE8FC16 for ; Mon, 14 Jul 2008 21:13:13 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so1110904ana.13 for ; Mon, 14 Jul 2008 14:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=iwQyOsQOXCWzp3O7hpUkAW8cdS96Joue7whodx+HDv8=; b=Tinff0qGAazZKijrsmbuo+i60lsypcU9ftgB3I/8EDW80X3OgYaJDXD5ddUtXhj+gk Ol9YquUK2h3VTz/e7UkwbE/EgwsmzrwGsatWTEUQNJoQ7MhxlHA1joUJuisx3XATuaF1 zlg4ZODQM640/2QlVq7c/0rLfGuFBvR5l863A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=pVsN6DjJ0TbzbSoJ6xZMq8MyBf4320XCkWY4VExKshYKgAY86YnMa7Ogd04zXXQGCb WKggLbu8M3+gGMQtsRS8QE9FECbqjJndL3rG+6rrpAM9najDA9eb9rxeUfLMDSHoI1TR jidZZZJNg1DRbXvR3+X12HT24GR0cauKREwWQ= Received: by 10.100.37.20 with SMTP id k20mr10772981ank.12.1216069068453; Mon, 14 Jul 2008 13:57:48 -0700 (PDT) Received: by 10.100.42.12 with HTTP; Mon, 14 Jul 2008 13:57:48 -0700 (PDT) Message-ID: Date: Mon, 14 Jul 2008 22:57:48 +0200 From: "Mateusz Guzik" To: "Tapan Chaudhari" In-Reply-To: <482257ad0807141310h3381a97dif17290aed1133cfe@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <482257ad0807141106m679ec19frd853339637d27a2d@mail.gmail.com> <20080714184030.GA62288@eos.sc1.parodius.com> <482257ad0807141218l26cbb95aid91414a3c88a121c@mail.gmail.com> <20080714153653.59ecb307@bhuda.mired.org> <482257ad0807141310h3381a97dif17290aed1133cfe@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Can I change the device of the "/" mount point at boot time. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2008 21:13:13 -0000 2008/7/14 Tapan Chaudhari : > > Hi, > Thanks a lot Mike. But the problem is the device I am talking about is > not the physical device. I am writing a driver which will create a virtual > device and all the i/os done on this virtual device will be ultimately > redirected to the original device. Correct me if I am wrong, but I guess the > loader will try to mount my new device on '/' and then load the modules into > the kernel. Since my driver would not be loaded at that point in time, it > will fail to even mount '/'. Am I right? Or can our drivers get loaded > before loader mounts '/' ? Yes, take a look at /boot/loader.conf .