summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2006-05-18 15:29:27 +0000
committerflz <flz@FreeBSD.org>2006-05-18 15:29:27 +0000
commit3d58ab6ef3bedfa3b3edb454ac4b509eaca930ed (patch)
treee8c7f4ff77c794dfe3d81de6e5b60ed7c24acc58 /share
parentd54cf9fc0c7b57e54ebfba869e5dca6f802374ad (diff)
downloadFreeBSD-src-3d58ab6ef3bedfa3b3edb454ac4b509eaca930ed.zip
FreeBSD-src-3d58ab6ef3bedfa3b3edb454ac4b509eaca930ed.tar.gz
Add two new scripts (mdconfig/mdconfig2) to replace old ramdisk{,-own}
scripts. These scripts handle vnode backed md(4) devices. Old ramdisk{,-own} scripts will stay a bit in CVS to allow some time for migration since variable names have changed (ramdisk_* -> mdconfig_*). Two new variables have been introduced to be able to populate the md(4) device once it has been mounted (mdconfig_*_files and mdconfig_*_cmd). Use should be as easy as: mdconfig_md0="-t malloc -s 10m" mdconfig_md1="-t vnode -f /var/foo.img" See rc.conf(5) for more information and description of the additional variables. Approved by: cperciva
Diffstat (limited to 'share')
-rw-r--r--share/man/man5/rc.conf.589
1 files changed, 88 insertions, 1 deletions
diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5
index a74e2ba..cef3c21 100644
--- a/share/man/man5/rc.conf.5
+++ b/share/man/man5/rc.conf.5
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 11, 2006
+.Dd May 18, 2006
.Dt RC.CONF 5
.Os
.Sh NAME
@@ -3415,6 +3415,91 @@ The default is
which causes log files flagged with a
.Cm C
to be created.
+.It Va mdconfig_md Ns Ao Ar X Ac
+.Pq Vt str
+Arguments to
+.Xr mdconfig 8
+for
+.Xr md 4
+device
+.Ar X .
+At minimum a
+.Fl t Ar type
+must be specified and either a
+.Fl s Ar size
+for malloc or swap backed
+.Xr md 4
+devices or a
+.Fl f Ar file
+for vnode backed
+.Xr md 4
+devices.
+Note that
+.Va mdconfig_md Ns Ao Ar X Ac
+variables are evaluated until one variable is unset or null.
+.It Va mdconfig_md Ns Ao Ar X Ac Ns Va _newfs
+.Pq Vt str
+Optional arguments passed to
+.Xr newfs 8
+to initialize
+.Xr md 4
+device
+.Ar X .
+.It Va mdconfig_md Ns Ao Ar X Ac Ns Va _owner
+.Pq Vt str
+An ownership specification passed to
+.Xr chown 8
+after the specified
+.Xr md 4
+device
+.Ar X
+has been mounted.
+Both the
+.Xr md 4
+device and the mount point will be changed.
+.It Va mdconfig_md Ns Ao Ar X Ac Ns Va _perms
+.Pq Vt str
+A mode string passed to
+.Xr chmod 1
+after the specified
+.Xr md 4
+device
+.Ar X
+has been mounted.
+Both the
+.Xr md 4
+device and the mount point will be changed.
+.It Va mdconfig_md Ns Ao Ar X Ac Ns Va _files
+.Pq Vt str
+Files to be copied to the mount point of the
+.Xr md 4
+device
+.Ar X
+after it has been mounted.
+.It Va mdconfig_md Ns Ao Ar X Ac Ns Va _cmd
+.Pq Vt str
+Command to execute after the specified
+.Xr md 4
+device
+.Ar X
+has been mounted.
+Note that the command is passed to
+.Li eval
+and that both
+.Li _dev
+and
+.Li _mp
+variables can be used to reference respectively the
+.Xr md 4
+device and the mount point.
+Assuming that the
+.Xr md 4
+device is
+.Li md0 ,
+one could set the following:
+.Bd -literal
+mdconfig_md0_cmd="tar xfzC /var/file.tgz \\${_mp}"
+.Ed
.It Va ramdisk_units
.Pq Vt str
A list of one or more ramdisk units to configure with
@@ -3430,6 +3515,8 @@ must specify at least a
in a
.Va ramdisk_ Ns Ao Ar X Ac Ns Va _config
variable.
+Note that this way to configure ramdisks has been deprecated
+in favor of new mdconfig variables (see above).
.It Va ramdisk_ Ns Ao Ar X Ac Ns Va _config
.Pq Vt str
Arguments to
OpenPOWER on IntegriCloud