I have a number of ZFS sub-filesystems (so that I can granularly manage snapshots and ZFS options) like so:
tank/media tank/media/pictures tank/media/pictures/photos tank/media/movies tank/media/music tank/media/documents tank/media/documents/public
I am running Debian GNU/Linux 8.6 (jessie) with ZFS-on-Linux, kernel
4.4.19-1-pve. My goal is to share the parent ZFS filesystem (
tank/media) with a LXC container via a bind mount and have the sub-filesystems be accessible.
If I bind mount
tank/media inside the container, then the sub ZFS filesystems (E.G.
tank/media/pictures) do not show up. I need to
mount --make-rshared tank/media in order for the sub-mounts to also appear.
How can I make ZFS sub filesystems be mounted
make-rshared by default using ZFS on Linux?