From owner-freebsd-geom@FreeBSD.ORG Tue Jan 13 13:41:15 2009 Return-Path: Delivered-To: geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 603A11065687 for ; Tue, 13 Jan 2009 13:41:15 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id D71C88FC14 for ; Tue, 13 Jan 2009 13:41:14 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id n0DDfUO8032696 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Jan 2009 13:41:31 GMT (envelope-from vince@unsane.co.uk) Message-ID: <496C99F8.4080307@unsane.co.uk> Date: Tue, 13 Jan 2009 13:41:12 +0000 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: Luigi Rizzo References: <20090113125631.GA90320@onelab2.iet.unipi.it> In-Reply-To: <20090113125631.GA90320@onelab2.iet.unipi.it> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: geom@freebsd.org Subject: Re: best common practice to handle variable provider names ? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2009 13:41:15 -0000 Luigi Rizzo wrote: > Hi, > I would like some advice on the following issue. > > If i add some geom modules on my disks, the "device names" to be used > in /etc/fstab change accordingly to which nodes are present. > > Is there a way to hide these changes so that /etc/fstab always > (within reasonable) has the same entries no matter what geom nodes > I am using ? > you could try using labels, I believe others have used them with some success although it sound like you may be doing more complex stuff than others i've seen using them. I have one mounted in my fstab: /dev/ufs/SCRATCH /usr/scratch ufs rw,noatime 2 2 which works for me (label was added using tunefs.) have a look at glabel(8) too see it it could do what you need. Vince > > E.g. right now I am playing with a disk scheduler module, so if the > scheduler module is present I would like to use ad0-sched-s1, whereas > I should fall back to ad0s1 if the scheduler is not loaded. > > How do I handle this with a single entry in /etc/fstab ? > I don't think i can assign a NULL name to a geom class, right ? > (or, maybe I can but then userland programs have a hard time > indicating the provider they want to refer to) > > cheers > luigi > > _______________________________________________ > freebsd-geom@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" >