ZFS dataset inside jail

Hi, I mounted a couple of zfs datasets in a jail, I can read/write data into them. But now, I want an external user to send/recv those datasets.

The issues, from inside the jail I see those as just plain directories, running zfs list returns no datasets available.
.
 
Yes, sorry in /etc/fstab.my_jail I mounted them as:

Code:
# Device        Mountpoint      FStype  Options Dump    Pass#
datos/jails/13_4_test_base     /datos/jails/containers/13.4/mnt/13_4_test_base nullfs rw,0 0

What should I use instead of nullfs?
 
in your jail config, you can have a line like

exec.poststart+="/sbin/zfs jail `/usr/sbin/jls -j ${name} jid` datos/jails/13_4_test_base";


and then you can use
zfs allow -u username diff,load-key,promote,release,share,snapshot,bookmark,allow,create,receive,rollback,send,snapshot,... datos/jails/13_4_test_base
 
Back
Top