Changeset View
Changeset View
Standalone View
Standalone View
etc/rc.subr
Show First 20 Lines • Show All 1,784 Lines • ▼ Show 20 Lines | |||||
# $1 = size | # $1 = size | ||||
# $2 = mount point | # $2 = mount point | ||||
# $3 = (optional) extra mdmfs flags | # $3 = (optional) extra mdmfs flags | ||||
mount_md() | mount_md() | ||||
{ | { | ||||
if [ -n "$3" ]; then | if [ -n "$3" ]; then | ||||
flags="$3" | flags="$3" | ||||
fi | fi | ||||
/sbin/mdmfs $flags -s $1 md $2 | /sbin/mdmfs $flags -s $1 ${mfs_type} $2 | ||||
stevek: Same thing here:
/sbin/mdmfs $flags -s $1 ${mfs_type:-auto} $2
| |||||
} | } | ||||
# Code common to scripts that need to load a kernel module | # Code common to scripts that need to load a kernel module | ||||
# if it isn't in the kernel yet. Syntax: | # if it isn't in the kernel yet. Syntax: | ||||
# load_kld [-e regex] [-m module] file | # load_kld [-e regex] [-m module] file | ||||
# where -e or -m chooses the way to check if the module | # where -e or -m chooses the way to check if the module | ||||
# is already loaded: | # is already loaded: | ||||
# regex is egrep'd in the output from `kldstat -v', | # regex is egrep'd in the output from `kldstat -v', | ||||
▲ Show 20 Lines • Show All 329 Lines • Show Last 20 Lines |
Same thing here:
/sbin/mdmfs $flags -s $1 ${mfs_type:-auto} $2