From owner-freebsd-geom@FreeBSD.ORG Tue Mar 16 14:23:44 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3C1A1065670; Tue, 16 Mar 2010 14:23:44 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 887F98FC08; Tue, 16 Mar 2010 14:23:44 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 548596436; Tue, 16 Mar 2010 14:23:43 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.3/8.14.3) with ESMTP id o2GENgSe083504; Tue, 16 Mar 2010 14:23:43 GMT (envelope-from phk@critter.freebsd.dk) To: Jaakko Heinonen From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 16 Mar 2010 16:17:38 +0200." <20100316141737.GB3010@a91-153-117-195.elisa-laajakaista.fi> Date: Tue, 16 Mar 2010 14:23:42 +0000 Message-ID: <83503.1268749422@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Pawel Jakub Dawidek , freebsd-geom@FreeBSD.org Subject: Re: geom_label and directories under /dev 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, 16 Mar 2010 14:23:44 -0000 In message <20100316141737.GB3010@a91-153-117-195.elisa-laajakaista.fi>, Jaakko Heinonen writes: > >> Devfs allows to create multiple entiries with the same name and this >> is bug, file system shouldn't allow that. > >I am not a devfs expert but the current make_dev(9) interface suggest >that it's responsibility of the caller to ensure sanity of device names. Correct observation. We could probably change the API today to allow failures, but I would hate to see all the device drivers have to sprout code to try to find an alternative name. But likewise, I am not sure having DEVFS silently append abitrary designators for disabiguation, to duplicate names, is a good idea either, but it may be the least bad idea. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.