zfs-jail8
Attach or detach zfs filesystem from freebsd jail
Usage
zfs {jail
jailid | jailname
filesystem}
zfs {unjail
jailid | jailname
filesystem}
Overview
-
zfsjailjailid|jailname filesystem Attach the specified filesystem to the jail identified by JID jailid or name jailname. From now on this file system tree can be managed from within a jail if thejailedproperty has been set. To use this functionality, the jail needs theallow.mountandallow.mount.zfsparameters set to1and theenforce_statfsparameter set to a value lower than2.You cannot attach a jailed dataset's children to another jail. You can also not attach the root file system of the jail or any dataset which needs to be mounted before the zfs rc script is run inside the jail, as it would be attached unmounted until it is mounted from the rc script inside the jail.
To allow management of the dataset from within a jail, the
jailedproperty has to be set and the jail needs access to the /dev/zfs device. Thequotaproperty cannot be changed from within a jail.After a dataset is attached to a jail and the
jailedproperty is set, a jailed file system cannot be mounted outside the jail, since the jail administrator might have set the mount point to an unacceptable value.See jail(8) for more information on managing jails. Jails are a FreeBSD feature and are not relevant on other platforms.
-
zfsunjailjailid|jailname filesystem Detaches the specified filesystem from the jail identified by JID jailid or name jailname.
Releases
2 releases since Debian 11 (Bullseye); the text changed 1 time.