From owner-freebsd-arch@FreeBSD.ORG Tue Sep 28 15:49:43 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EF18106566B for ; Tue, 28 Sep 2010 15:49:43 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout030.mac.com (asmtpout030.mac.com [17.148.16.105]) by mx1.freebsd.org (Postfix) with ESMTP id 262B68FC15 for ; Tue, 28 Sep 2010 15:49:42 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp030.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L9G00C3PRYGXAA0@asmtp030.mac.com> for freebsd-arch@freebsd.org; Tue, 28 Sep 2010 08:49:29 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1009280098 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-09-28_10:2010-09-28, 2010-09-28, 1970-01-01 signatures=0 From: Marcel Moolenaar In-reply-to: Date: Tue, 28 Sep 2010 08:48:53 -0700 Message-id: References: To: "freebsd-arch@FreeBSD.org Arch" X-Mailer: Apple Mail (2.1081) Subject: Re: [patch] functional prototype of root mount enhancement X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2010 15:49:43 -0000 On Sep 27, 2010, at 11:22 PM, Marcel Moolenaar wrote: > > The code has some debug output still, which is helpful to > see what's going on internally. From a boot (with a > /.mount.conf present on ufs:/dev/ad0s1a): A more interesting example is using an ISO image as root that lives on UFS file system (in this case FreeBSD 8.1 livefs): : Root mount waiting for: usbus1 ugen1.2: at usbus1 ======== .onfail panic .timeout 1 ufs:/dev/ad0s1a rw .ask ======== Trying to mount root from ufs:/dev/ad0s1a [rw]... XXX: vfs_mountroot_parse: error = 0, mpdevfs=0xc3fa4000, mp=0xc3fa3c94 ======== .onfail continue .md /livefs.iso #ufs:/dev/da0a .ask ======== md0 attached to /livefs.iso Loader variables: vfs.root.mountfrom=ufs:/dev/ad0s1a vfs.root.mountfrom.options=rw Manual root filesystem specification: : [options] Mount using filesystem and with the specified (optional) option list. eg. ufs:/dev/da0s1a cd9660:/dev/acd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/acd0 /) ? List valid disk boot devices Abort manual input mountroot> ? List of GEOM managed disk devices: da0p2 da0p1 da0 acd0 ad0s1a ad0s1 ad0 mountroot> . mountroot> ? List of GEOM managed disk devices: md0 da0p2 da0p1 da0 acd0 ad0s1a ad0s1 ad0 mountroot> cd9660:/dev/md# Trying to mount root from cd9660:/dev/md0 []... XXX: vfs_mountroot_parse: error = 0, mpdevfs=0xc3fa4000, mp=0xc3fa3a10 lock order reversal: 1st 0xc3e95270 isofs (isofs) @ /usr/src/sys/fs/cd9660/cd9660_vfsops.c:694 2nd 0xc3e959c4 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2221 KDB: stack backtrace: : # mount /dev/md0 on / (cd9660, local, read-only) /dev/ad0s1a on /mnt (ufs, local, read-only) devfs on /dev (devfs, local) /dev/md1 on /var (ufs, local) /dev/md2 on /tmp (ufs, local) (md1 & md2 are created by /etc/rc) -- Marcel Moolenaar xcllnt@mac.com