From owner-freebsd-current@FreeBSD.ORG Tue Oct 27 20:34:46 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 6D36F106566C for ; Tue, 27 Oct 2009 20:34:46 +0000 (UTC) (envelope-from triosoft@triosoft.com.ua) Received: from lynx.bereg.net.ua (ns.ein.uz.ua [194.88.152.1]) by mx1.freebsd.org (Postfix) with ESMTP id 23E378FC19 for ; Tue, 27 Oct 2009 20:34:45 +0000 (UTC) Received: from bobooka.local (252-91-124-91.pool.ukrtel.net [91.124.91.252]) by lynx.bereg.net.ua (Postfix) with ESMTPA id 6A40161E55 for ; Tue, 27 Oct 2009 22:16:08 +0200 (EET) Message-ID: <4AE754FB.7090007@triosoft.com.ua> Date: Tue, 27 Oct 2009 22:15:55 +0200 From: "Alexander V. Ribchansky" User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: ZFS pool bootfs property and vfs.root.mountfrom 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: Tue, 27 Oct 2009 20:34:46 -0000 Hello, zfs gurus! I wonder, is it hard to implement some kind of auto-sensing vfs.root.mountfrom from zfs's pool's bootfs property, which normally points to dataset that should be root FS? I dig into sys/boot and find out that we "just" :) need do place setenv("vfs.root.mountfrom",ZFS_GET_POOL_PROP("bootfs") <- some kind of metacode in a RIGHT place. But by all means I cannot gather whole picture of freebsd booting process (mean in sources who calls what) and find that magical RIGHT place. So may be zfs-gurus can say something? Is it possible to implement such thing? Is it hard? May be some hints of what to dig deeper in? thanks! -- AVR39-RIPE