Re: Sharing directories between jails on ZFS

From: M. Mader <mma_at_darktemple.ch>
Date: Mon, 14 Feb 2022 13:42:42 UTC
Am 14. Februar 2022 14:03:40 MEZ schrieb Frank Leonhardt <freebsd-doc@fjl.co.uk>:
>I've just realised I don't know how to do this!
>
>In the old days you'd use mount_nullfs to put common directories into 
>chrooted environments. It still works, and works on Jails. But surely 
>with ZFS and/or Jails there's a more modern way?
>
>AFAIK it's still not possible to mount a ZFS dataset in more than one 
>place, but this would seem to me to be the clean way of doing it.
>
>Any bright ideas? Am I living in the past?
>
>Thanks, Frank.
>
>
>

You can either give the jail its own dataset, or you can just mount an existing one with nullfs.

If you mount it with nullfs, you can mount it on the host as well as in the jail.