Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2010 14:23:42 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Jaakko Heinonen <jh@FreeBSD.org>
Cc:        Pawel Jakub Dawidek <pjd@FreeBSD.org>, freebsd-geom@FreeBSD.org
Subject:   Re: geom_label and directories under /dev 
Message-ID:  <83503.1268749422@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 16 Mar 2010 16:17:38 %2B0200." <20100316141737.GB3010@a91-153-117-195.elisa-laajakaista.fi> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?83503.1268749422>