From owner-freebsd-geom@FreeBSD.ORG Tue Jan 13 12:51:23 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 37726106564A for ; Tue, 13 Jan 2009 12:51:23 +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 F26948FC2B for ; Tue, 13 Jan 2009 12:51:22 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id A996873098; Tue, 13 Jan 2009 13:56:31 +0100 (CET) Date: Tue, 13 Jan 2009 13:56:31 +0100 From: Luigi Rizzo To: geom@freebsd.org, Luigi Rizzo Message-ID: <20090113125631.GA90320@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: 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 12:51:23 -0000 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 ? 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