View | Details | Raw Unified | Return to bug 122477 | Differences between
and this patch

Collapse All | Expand All

(-)etc/rc.d/mdconfig (-1 / +2 lines)
Lines 174-183 Link Here
174
}
174
}
175
175
176
_mdconfig_cmd="$1"
176
_mdconfig_cmd="$1"
177
eval _mdconfig_list=\$mdconfig_units
177
if [ $# -gt 0 ]; then
178
if [ $# -gt 0 ]; then
178
        shift
179
        shift
179
fi
180
fi
180
[ -n "$*" ] && _mdconfig_list="$*"
181
[ -n "$_mdconfig_list" -a -n "$*" ] && _mdconfig_list="$*"
181
182
182
load_rc_config $name
183
load_rc_config $name
183
184
(-)etc/rc.d/mdconfig2 (-1 / +2 lines)
Lines 204-213 Link Here
204
}
204
}
205
205
206
_mdconfig2_cmd="$1"
206
_mdconfig2_cmd="$1"
207
eval _mdconfig2_list=\$mdconfig_units
207
if [ $# -gt 0 ]; then
208
if [ $# -gt 0 ]; then
208
        shift
209
        shift
209
fi
210
fi
210
[ -n "$*" ] && _mdconfig2_list="$*"
211
[ -n "$_mdconfig2_list" -a -n "$*" ] && _mdconfig2_list="$*"
211
212
212
load_rc_config $name
213
load_rc_config $name
213
214
(-)share/man/man5/rc.conf.5 (-62 / +22 lines)
Lines 3997-4002 Link Here
3997
which causes log files flagged with a
3997
which causes log files flagged with a
3998
.Cm C
3998
.Cm C
3999
to be created.
3999
to be created.
4000
.It Va mdconfig_units
4001
.Pq Vt str
4002
A list of one or more
4003
.Xr md 4
4004
units to configure with
4005
.Xr mdconfig 8
4006
and
4007
.Xr newfs 8
4008
in time to be mounted with
4009
.Xr fstab 5 .
4010
If unspecified, the
4011
.Va mdconfig_md Ns Aq Ar X
4012
variables are evaluated in consecutive order from md0, until one variable is
4013
unset or null.
4014
See the
4015
.Va mdconfig_md Ns Aq Ar X
4016
variable descriptions below for more details.
4000
.It Va mdconfig_md Ns Aq Ar X
4017
.It Va mdconfig_md Ns Aq Ar X
4001
.Pq Vt str
4018
.Pq Vt str
4002
Arguments to
4019
Arguments to
Lines 4015-4024 Link Here
4015
.Fl f Ar file
4032
.Fl f Ar file
4016
for vnode backed
4033
for vnode backed
4017
.Xr md 4
4034
.Xr md 4
4018
devices.
4035
devices. Each
4019
Note that
4020
.Va mdconfig_md Ns Aq Ar X
4036
.Va mdconfig_md Ns Aq Ar X
4021
variables are evaluated until one variable is unset or null.
4037
entry listed in
4038
.Va mdconfig_units
4039
must be defined in
4040
.Xr fstab 5 .
4022
.It Va mdconfig_md Ns Ao Ar X Ac Ns Va _newfs
4041
.It Va mdconfig_md Ns Ao Ar X Ac Ns Va _newfs
4023
.Pq Vt str
4042
.Pq Vt str
4024
Optional arguments passed to
4043
Optional arguments passed to
Lines 4082-4146 Link Here
4082
.Bd -literal
4101
.Bd -literal
4083
mdconfig_md0_cmd="tar xfzC /var/file.tgz \e${_mp}"
4102
mdconfig_md0_cmd="tar xfzC /var/file.tgz \e${_mp}"
4084
.Ed
4103
.Ed
4085
.It Va ramdisk_units
4086
.Pq Vt str
4087
A list of one or more ramdisk units to configure with
4088
.Xr mdconfig 8
4089
and
4090
.Xr newfs 8
4091
in time to be mounted from
4092
.Xr fstab 5 .
4093
Each listed unit
4094
.Ar X
4095
must specify at least a
4096
.Ar type
4097
in a
4098
.Va ramdisk_ Ns Ao Ar X Ac Ns Va _config
4099
variable.
4100
Note that this way to configure ramdisks has been deprecated
4101
in favor of new
4102
.Va mdconfig_md*
4103
variables (see above).
4104
.It Va ramdisk_ Ns Ao Ar X Ac Ns Va _config
4105
.Pq Vt str
4106
Arguments to
4107
.Xr mdconfig 8
4108
for ramdisk
4109
.Ar X .
4110
At minimum a
4111
.Fl t Ar type
4112
must be specified, where
4113
.Ar type
4114
must be one of
4115
.Cm malloc
4116
or
4117
.Cm swap .
4118
.It Va ramdisk_ Ns Ao Ar X Ac Ns Va _newfs
4119
.Pq Vt str
4120
Optional arguments passed to
4121
.Xr newfs 8
4122
to initialize ramdisk
4123
.Ar X .
4124
.It Va ramdisk_ Ns Ao Ar X Ac Ns Va _owner
4125
.Pq Vt str
4126
An ownership specification passed to
4127
.Xr chown 8
4128
after the specified ramdisk unit
4129
.Ar X
4130
has been mounted.
4131
Both the
4132
.Xr md 4
4133
device and the mount point will be changed.
4134
.It Va ramdisk_ Ns Ao Ar X Ac Ns Va _perms
4135
.Pq Vt str
4136
A mode string passed to
4137
.Xr chmod 1
4138
after the specified ramdisk unit
4139
.Ar X
4140
has been mounted.
4141
Both the
4142
.Xr md 4
4143
device and the mount point will be changed.
4144
.It Va autobridge_interfaces
4104
.It Va autobridge_interfaces
4145
.Pq Vt str
4105
.Pq Vt str
4146
Set to the list of bridge interfaces that will have newly arriving interfaces
4106
Set to the list of bridge interfaces that will have newly arriving interfaces

Return to bug 122477