summaryrefslogtreecommitdiffstats
path: root/etc/rc.subr
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.subr')
-rw-r--r--etc/rc.subr13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index 9830ec8..74784b9 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -1273,3 +1273,16 @@ devfs_mount_jail()
fi
return 0
}
+
+# Provide a function for normalizing the mounting of memory
+# filesystems. This should allow the rest of the code here to remain
+# as close as possible between 5-current and 4-stable.
+# $1 = size
+# $2 = mount point
+# $3 = (optional) bytes-per-inode
+mount_md() {
+ if [ -n "$3" ]; then
+ bpi="-i $3"
+ fi
+ /sbin/mdmfs $bpi -s $1 -M md $2
+}
OpenPOWER on IntegriCloud