From owner-freebsd-jail@FreeBSD.ORG Fri Mar 23 19:09:28 2012 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B3A0E106564A for ; Fri, 23 Mar 2012 19:09:28 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id 0AB6E8FC14 for ; Fri, 23 Mar 2012 19:09:27 +0000 (UTC) Received: (qmail invoked by alias); 23 Mar 2012 19:09:21 -0000 Received: from g229014139.adsl.alicedsl.de (EHLO [192.168.178.28]) [92.229.14.139] by mail.gmx.com (mp-eu005) with SMTP; 23 Mar 2012 20:09:21 +0100 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX1/rbBJwdHrrBHct0T4/+zLNPnPgNTXSiKfS78IGCD YbTuY8RA7dRg8D Message-ID: <4F6CCA4F.3020708@gmx.com> Date: Fri, 23 Mar 2012 20:09:03 +0100 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Jamie Gritton References: <4F6B5EE6.8080006@gmx.com> <4F6C8B13.1000508@FreeBSD.org> In-Reply-To: <4F6C8B13.1000508@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: FreeBSD-Jail Subject: Re: jail name is interpreted as jid when numeric X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2012 19:09:28 -0000 I see. I wasn't sure what it was, hence the question. Thanks for the explanation Jamie. On 3/23/2012 3:39 PM, Jamie Gritton wrote: > It might seem clear with the dot-separated names that asd.asd.1 isn't > the same as jail 1. But looking from the viewpoint of asd.asd, that jail > would simply be "1". As jails may be referred to by either number or > name, it made sense to exclude jails whose name was a number, except in > the special case of it being the same as the jid. Otherwise there's the > confusion of a jail having two different numbers (one really being a > name), or of a number referring to two different jails. > > So while this does seem to break the dot-separate namespace concept, > it's necessary because jails aren't always referred to by the full > hierarchical name. > > - Jamie > > > On 03/22/12 11:18, Nikos Vassiliadis wrote: >> I found this somehow strange behavior and I am reporting it >> just to hear your opinions. >> >>> lab# jail -c name=asd persist >>> lab# jail -c name=asd.asd persist >> >> asd is interpreted as jail asd.asd >> >>> lab# jail -c name=asd.asd.1 persist >>> jail: jail 1 already exists >> >> 1 is interpreted as jail 1 >> >> This has to do with the fact that a numeric name is interpreted as jid >> and this breaks the dot-seperated hierarchical jails concept. >> I find this behavior somehow strange. Is it intended or it's bug? >> >> Thanks for your insights, Nikos