Code:
zfs get all <filesystem>
A bit of googling solves pieces of the puzzle. Apparently it is used for exporting zfs filesystems to a jail. But what next? I have a jail called 'ftp' and tried the following:
Code:
# jls
JID IP Address Hostname Path
2 192.168.0.4 ftp.example.com /jail/ftp
# sysctl security.jail.enforce_statfs=0
security.jail.enforce_statfs: 2 -> 0
# sysctl security.jail.mount_allowed=1
security.jail.mount_allowed: 0 -> 1
Code:
# zfs set jailed=on rpool/JAIL/test
# zfs jail 2 rpool/JAIL/test
Code:
# jexec 2 tcsh
ftp# zfs list
internal error: failed to initialize ZFS library