Date: Tue, 7 Jan 2003 04:14:16 -0800 (PST) From: Joerg Wunsch <joerg@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/vinum vinum.c Message-ID: <200301071214.h07CEGcX039983@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301071214.h07CEGcX039983>
