From owner-freebsd-arch@FreeBSD.ORG Fri Aug 22 15:43:56 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93317106566C; Fri, 22 Aug 2008 15:43:56 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 503108FC1E; Fri, 22 Aug 2008 15:43:56 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 6EE9373098; Fri, 22 Aug 2008 17:46:31 +0200 (CEST) Date: Fri, 22 Aug 2008 17:46:31 +0200 From: Luigi Rizzo To: Brooks Davis Message-ID: <20080822154631.GA61495@onelab2.iet.unipi.it> References: <20080822090448.GB57441@onelab2.iet.unipi.it> <48AE89DC.9080408@yandex.ru> <20080822120525.GA1366@haakonia.hitnet.RWTH-Aachen.DE> <20080822145616.GA61094@onelab2.iet.unipi.it> <20080822150728.GB57443@lor.one-eyed-alien.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080822150728.GB57443@lor.one-eyed-alien.net> User-Agent: Mutt/1.4.2.3i Cc: Ivan Voras , Christian Brueffer , freebsd-arch@freebsd.org Subject: Re: Magic symlinks redux X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2008 15:43:56 -0000 On Fri, Aug 22, 2008 at 10:07:29AM -0500, Brooks Davis wrote: > On Fri, Aug 22, 2008 at 04:56:16PM +0200, Luigi Rizzo wrote: > > On Fri, Aug 22, 2008 at 02:05:26PM +0200, Christian Brueffer wrote: > > > On Fri, Aug 22, 2008 at 12:24:41PM +0200, Ivan Voras wrote: > > ... > > > > This patch is huge. As far as I can tell DragonflyBSD has a whole > > > > framework dedicated to varsyms, spread across a fair part of the kernel > > > > and with at least one special userland utility. It allows the operator > > > > to define his own variables that can be used in the substitutions, and I > > > > don't see that it predefines "special" variables like "uid" and > > > > "hostname". It's not necessarily a bad solution but I consider it overkill. > > ... > > > Brooks has a varsym port in p4, see //depot/user/brooks/varsym/ > > > > this also seems to be based on Dragonfly's code, quite intrusive. > > This code adds one global symbol, one function call in the vfs code, > and two pointers to struct proc. For that we get a system which is > significantly more flexible than the NetBSD code. > > While the simplicity of the NetBSD code is somewhat attractive, the > fact that variables can not be defined renders it useless for my > purposes which are providing partial file system virtulization for > computing job/sessions where I need to key off of externally derived job > IDs or job specific temporary paths. understood -- it's just that the difference in code size is impressive. Do you know how much of it is used to implement the "varsym" subsystem (user- or system-wide variables) and how much is the core name translation ? cheers luigi