diff options
Diffstat (limited to 'etc/rc.d/zfs')
-rwxr-xr-x | etc/rc.d/zfs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/etc/rc.d/zfs b/etc/rc.d/zfs index 4f9bc6a..cabbcf6 100755 --- a/etc/rc.d/zfs +++ b/etc/rc.d/zfs @@ -23,21 +23,11 @@ zfs_start_jail() zfs_start_main() { - zfs volinit zfs mount -a zfs share -a if [ ! -r /etc/zfs/exports ]; then touch /etc/zfs/exports fi - # Enable swap on ZVOLs with property org.freebsd:swap=on. - zfs list -H -o org.freebsd:swap,name -t volume | \ - while read state name; do - case "${state}" in - [oO][nN]) - swapon /dev/zvol/${name} - ;; - esac - done } zfs_start() @@ -58,18 +48,8 @@ zfs_stop_jail() zfs_stop_main() { - # Disable swap on ZVOLs with property org.freebsd:swap=on. - zfs list -H -o org.freebsd:swap,name -t volume | \ - while read state name; do - case "${state}" in - [oO][nN]) - swapoff /dev/zvol/${name} - ;; - esac - done zfs unshare -a zfs unmount -a - zfs volfini } zfs_stop() |