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
[ -z "$_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
[ -z "$_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 (-3 / +22 lines)
Lines 4203-4208 Link Here
4203
which causes log files flagged with a
4203
which causes log files flagged with a
4204
.Cm C
4204
.Cm C
4205
to be created.
4205
to be created.
4206
.It Va mdconfig_units
4207
.Pq Vt str
4208
A list of one or more
4209
.Xr md 4
4210
units to configure with
4211
.Xr mdconfig 8
4212
and
4213
.Xr newfs 8
4214
in time to be mounted with
4215
.Xr fstab 5 .
4216
If unspecified, the
4217
.Va mdconfig_md Ns Aq Ar X
4218
variables are evaluated in consecutive order from md0, until one variable is
4219
unset or null.
4220
See the
4221
.Va mdconfig_md Ns Aq Ar X
4222
variable descriptions below for more details.
4206
.It Va mdconfig_md Ns Aq Ar X
4223
.It Va mdconfig_md Ns Aq Ar X
4207
.Pq Vt str
4224
.Pq Vt str
4208
Arguments to
4225
Arguments to
Lines 4221-4230 Link Here
4221
.Fl f Ar file
4238
.Fl f Ar file
4222
for vnode backed
4239
for vnode backed
4223
.Xr md 4
4240
.Xr md 4
4224
devices.
4241
devices. Each
4225
Note that
4226
.Va mdconfig_md Ns Aq Ar X
4242
.Va mdconfig_md Ns Aq Ar X
4227
variables are evaluated until one variable is unset or null.
4243
entry listed in
4244
.Va mdconfig_units
4245
must be defined in
4246
.Xr fstab 5 .
4228
.It Va mdconfig_md Ns Ao Ar X Ac Ns Va _newfs
4247
.It Va mdconfig_md Ns Ao Ar X Ac Ns Va _newfs
4229
.Pq Vt str
4248
.Pq Vt str
4230
Optional arguments passed to
4249
Optional arguments passed to

Return to bug 122477