From owner-cvs-all@FreeBSD.ORG Tue May 27 17:20:31 2008 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4427C1065676 for ; Tue, 27 May 2008 17:20:31 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outI.internet-mail-service.net (outi.internet-mail-service.net [216.240.47.232]) by mx1.freebsd.org (Postfix) with ESMTP id 2DBB18FC2E for ; Tue, 27 May 2008 17:20:31 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 47849248C; Tue, 27 May 2008 10:20:35 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 951022D6013; Tue, 27 May 2008 10:20:30 -0700 (PDT) Message-ID: <483C42E5.8060309@elischer.org> Date: Tue, 27 May 2008 10:20:37 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Alexander Leidinger References: <200805261157.m4QBvnpF025029@repoman.freebsd.org> <200805261848.m4QImNbB039362@post.frank-behrens.de> <20080527165637.113110t131433i2s@webmail.leidinger.net> In-Reply-To: <20080527165637.113110t131433i2s@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Frank Behrens , cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2008 17:20:31 -0000 Alexander Leidinger wrote: > Quoting Frank Behrens (from Mon, 26 May 2008 > 20:48:23 +0200): > >> The rc.conf jail framework also requires unique hostnames for jails, >> because the jail-ids are >> write to /var/run. > > On a related note: JIDs are not known in advance, so doing some rc.d > stuff which associates a specific X with a jail is not easy. So for > example the zfs feature to assign a zfs filesystem to a jail is > practiaclly useless at the moment for stuff which shall be available > after a reboot without admin intervention (it is not guaranteed that the > jails get the same JID again on reboot). > > In http://www.leidinger.net/FreeBSD/current-patches/jail.diff I have a > patch which also uses the hostname of a jail to allow access to /dev/io > in the jail (if the admin of the host made it visible in the jail). If > ZFS would use the hostname, it would make it more useful (but maybe we > would need some magic in the jail code to notify ZFS about a new jail, I > haven't checked how ZFS is working in this regard). > > So basically we need some unique value which is handed out by the admin > and doesn't change after a reboot. For me the hostname is a good > approximation for this (my hostnames are unique, and I have full control > over them). > > Bye, > Alexander. > using Jail identifiers that are allocated also fits into vimage, however vimage is hierarchical.. "." is the base jail/vimage. ".foo" is a jail/vimage called foo that was made in "." ".foo.bar" is a jail/vimage called bar that was made inside ".foo"