From owner-cvs-all Tue Jan 7 4:14:18 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 E560437B401; Tue, 7 Jan 2003 04:14:16 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5E1043ED1; Tue, 7 Jan 2003 04:14:16 -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 h07CEGfh039984; Tue, 7 Jan 2003 04:14:16 -0800 (PST) (envelope-from joerg@repoman.freebsd.org) Received: (from joerg@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h07CEGcX039983; Tue, 7 Jan 2003 04:14:16 -0800 (PST) Message-Id: <200301071214.h07CEGcX039983@repoman.freebsd.org> From: Joerg Wunsch Date: Tue, 7 Jan 2003 04:14:16 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/vinum vinum.c X-FreeBSD-CVS-Branch: RELENG_4 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/01/07 04:14:16 PST Modified files: (Branch: RELENG_4) sys/dev/vinum vinum.c Log: Make vinumattach() recognize a couple of kernel env variables that can be used to finally allow for a vinum root filesystem. These variables are supposed to be configured by the bootloader. vinum.drives must contain a (complete) list of the devices that comprise the vinum volumes on that machine. If it is set, vinumattach() will start the volumes found already at attach time. (The KLD must have been pre-loaded by the bootloader as well.) vinum.root can then contain the name of the root volume. If this volume has been found, the variable rootdev will be preconfigured using the major/minor # of this volume's device. The solution for -current will be implemented in a different way, most likely an autoscan will be there, too. The approach taken here aims at minimal intrusion into the existing code to be as low risk as possible for -stable. If the named environment variables do not exist, the entire behaviour is as it used to be without the change. Example of a /boot/loader.conf: vinum_load="YES" vinum.drives="/dev/da0h /dev/da1h /dev/da2h" vinum.root="root" Some documentation will follow, too. Reviewed by: grog Revision Changes Path 1.38.2.3 +39 -0 src/sys/dev/vinum/vinum.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message