Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/zfs
Show All 19 Lines | |||||
{ | { | ||||
if [ `$SYSCTL_N security.jail.mount_allowed` -eq 1 ]; then | if [ `$SYSCTL_N security.jail.mount_allowed` -eq 1 ]; then | ||||
zfs mount -a | zfs mount -a | ||||
fi | fi | ||||
} | } | ||||
zfs_start_main() | zfs_start_main() | ||||
{ | { | ||||
local cachefile | |||||
for cachefile in /boot/zfs/zpool.cache /etc/zfs/zpool.cache; do | |||||
if [ -r $cachefile ]; then | |||||
zpool import -c $cachefile -a | |||||
fi | |||||
done | |||||
zfs mount -va | zfs mount -va | ||||
zfs share -a | zfs share -a | ||||
if [ ! -r /etc/zfs/exports ]; then | if [ ! -r /etc/zfs/exports ]; then | ||||
touch /etc/zfs/exports | touch /etc/zfs/exports | ||||
fi | fi | ||||
} | } | ||||
zfs_start() | zfs_start() | ||||
Show All 32 Lines |