Re: Sharing directories between jails on ZFS

From: Axey Endres <axey.endres_at_gmail.com>
Date: Wed, 02 Mar 2022 21:26:12 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Mon, 14 Feb 2022 14:42:42 +0100
"M. Mader" <mma@darktemple.ch> wrote:

> 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.
> 

Is there any performance difference between the two options?
When to choose one over another?

Thanks

- -- 
Axey Gabriel Müller Endres
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEEDRTKhM3Dq7tkkbDwXnflz5Iu7ooFAmIf4PQACgkQXnflz5Iu
7oqjZwv/btL4MJ1S43MQvVyutyI+PgtVXBotdbsYGFcbN3yxdByaXik45r/+YZAw
m0Sw1/7ieAVaUIJX7wPvRixtCI5yIj9kLSjhX7L3KzT/j/T9mRb4WkEwfv9oARdH
hdZCwkSsLJuhMoHsIh8+sxAP9ETtfaFeVBG/hUEo68M1I/a3KZEVKOP9y1h8sE7v
v42woMm4i+bQpYbgzaUnrMkVKSuIf5LPCmpuWhESpTFvLiRZPx2jkUnbV5srTNI9
j6OBvc86rpBHI3oj3i+AB2XKu3xoPzVNMU99uJWaOeOsKoTp0132K2lbVkwZYqNg
zsrvkUfCuzmViDmNGrE/Ch/XghcjMjNTCeJlpXvKVvvwT8MXzKOrWD/yzt7KjqNn
4vm8muj2Dr3+ZO8mST2N2bP2TY+zAGZCEZBV4Nl7oti0ypD9+lHBH3oUwZv1JtSU
Q1kpbMh69+VNRhIgJHtTEORF6Vq30dVk5IqWY9GLTzlgmQVjB+lVnugTSy3raMAU
7vOymOE8
=Zccb
-----END PGP SIGNATURE-----