geom_label and directories under /dev
Poul-Henning Kamp
phk at phk.freebsd.dk
Tue Mar 16 14:23:44 UTC 2010
In message <20100316141737.GB3010 at 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 at 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.
More information about the freebsd-geom
mailing list