diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2006-05-18 15:29:27 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2006-05-18 15:29:27 +0000 |
commit | 01b19d78526a23ee0f79f22af4c3b6c105d166dc (patch) | |
tree | e8c7f4ff77c794dfe3d81de6e5b60ed7c24acc58 /share/man/man5/rc.conf.5 | |
parent | 352e01f17b7de78db81dc4057ee66241e5bb7664 (diff) | |
download | src-01b19d78526a23ee0f79f22af4c3b6c105d166dc.tar.gz src-01b19d78526a23ee0f79f22af4c3b6c105d166dc.zip |
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
Notes
Notes:
svn path=/head/; revision=158722
Diffstat (limited to 'share/man/man5/rc.conf.5')
-rw-r--r-- | share/man/man5/rc.conf.5 | 89 |
1 files changed, 88 insertions, 1 deletions
diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5 index a74e2ba5039b..cef3c219bdc4 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 |