Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2023 10:36:26 +0200
From:      Oleksandr Kryvulia <shuriku@shurik.kiev.ua>
To:        freebsd-fs@freebsd.org
Subject:   Re: Querying jailed ZFSes
Message-ID:  <cfee4874-2fd9-0af5-f0e8-1287e6aca317@shurik.kiev.ua>
In-Reply-To: <cd500c41-64dd-5c5e-15f9-661f3ff5af32@FreeBSD.org>
References:  <cd500c41-64dd-5c5e-15f9-661f3ff5af32@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
26.01.23 09:25, Matthew Seaman пише:
> So, I can give a jail control over a section of my ZFS pool:
>
>    zfs set jailed=on zroot/poudriere
>    zfs jail pkg.infracaninophile.co.uk zroot/poudriere
>
> and all that works absolutely perfectly.  But I can't see any way 
> after doing that to query ZFS and get a report on what ZFSes have been 
> jailed where.  All I can see is the state of the `jailed` property:
>
>    % zfs get jailed zroot/poudriere
>    NAME             PROPERTY  VALUE   SOURCE
>    zroot/poudriere  jailed    on      local
>
> No mention anywhere of the jail name or JID I can see? Is this possible?
>

I don't know easy way to check this. In our environment we use small 
workaround by setting custom zfs property with jail name when fs is jailed.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cfee4874-2fd9-0af5-f0e8-1287e6aca317>