From owner-cvs-all Wed Feb 5 13: 3: 1 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0A4637B401; Wed, 5 Feb 2003 13:02:57 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D08943F93; Wed, 5 Feb 2003 13:02:57 -0800 (PST) (envelope-from joerg@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h15L2vbv010837; Wed, 5 Feb 2003 13:02:57 -0800 (PST) (envelope-from joerg@repoman.freebsd.org) Received: (from joerg@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h15L2vIB010836; Wed, 5 Feb 2003 13:02:57 -0800 (PST) Message-Id: <200302052102.h15L2vIB010836@repoman.freebsd.org> From: Joerg Wunsch Date: Wed, 5 Feb 2003 13:02:57 -0800 (PST) To: all-committers@FreeBSD.org, legacy-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf options src/sys/dev/vinum vinum.c vinumhdr.h vinumio.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG joerg 2003/02/05 13:02:57 PST Modified files: sys/conf options sys/dev/vinum vinum.c vinumhdr.h vinumio.c Log: Finally make vinum ready for the root filesystem in FreeBSD 5.x. (A similar patch has been in 4.x for a while, but is more hacky there.) For this to work, vinum has to be loaded early (e. g. from boot/loader), for obvious reasons. If the kernel env variable (aka. loader variable) "vinum.autostart" is set, vinum then asks the sysctl kern.disks for all available disks in the system, and scans them for possible vinum headers. For statically compiled kernels, this behaviour can be obtained even without boot/loader by using "options VINUM_AUTOSTART" (though this is not the recommended way). Alternatively, the 4.x way to specify "vinum.drives" is also supported. No further hacks (like the 4.x "vinum.root" variable) are needed, since in 5.x, mountroot() asks back at the drivers to have them resolve the name of the root FS into a dev_t (using the dev_clone eventhandler). (The MFC reminder below is for a partial MFC for vinum.autostart, the rest is already there in 4.x.) Timed out on: grog MFC after: 2 weeks Revision Changes Path 1.373 +1 -0 src/sys/conf/options 1.50 +82 -0 src/sys/dev/vinum/vinum.c 1.28 +1 -0 src/sys/dev/vinum/vinumhdr.h 1.80 +7 -22 src/sys/dev/vinum/vinumio.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message