Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2020 12:06:20 -0800
From:      James Gritton <jamie@gritton.org>
To:        freebsd-jail <freebsd-jail@freebsd.org>
Subject:   Re: Questions about the output of jls
Message-ID:  <466a825c7a7a1cdbcec72b82f978ad08@gritton.org>
In-Reply-To: <CACNAnaHjBmr2F2%2BaZHOH3UsgOE0FL%2BSknUV7-a825NBRJJ%2BAHw@mail.gmail.com>
References:  <trinity-1eddb95f-d7d8-4b02-be03-0296774a8434-1607875466295@3c-app-gmx-bap80> <CACNAnaHjBmr2F2%2BaZHOH3UsgOE0FL%2BSknUV7-a825NBRJJ%2BAHw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-12-13 08:16, Kyle Evans wrote:
> 
> It looks like it's exporting a jailsys int for vnet, so these 
> correspond to:
> 
> JAIL_SYS_DISABLE=0
> JAIL_SYS_NEW=1
> JAIL_SYS_INHERIT=2
> 
> So 2 is 'use parent vnet', 1 is 'new one created' -- I don't see this
> described in either jls(1) or jail(8), it'd probably be nice if we
> translated jailsys ints into "new"/"inherit" since one specifies
> "new"/"inherit" for them during creation.

Turns out this is a legit bug - I had a "=" where I needed a "|=".  That 
one-character fix will turn "vnet=2" into "vnet=inherit" for "jail -n 
vnet", same as it already is for "jail -n" without explicit parameters.

- Jamie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?466a825c7a7a1cdbcec72b82f978ad08>