Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 May 2008 18:55:03 +1000
From:      Norberto Meijome <freebsd@meijome.net>
To:        FreeBSD Stable ML <freebsd-stable@freebsd.org>
Subject:   Re: Is it possible to create a directory under /dev?
Message-ID:  <20080525185503.7642e736@ayiin>
In-Reply-To: <4836660D.1070801@icyb.net.ua>
References:  <e71790db0805212022r6b6f4e0ua050ead1ec5520f@mail.gmail.com> <48351A70.8090402@icyb.net.ua> <4836660D.1070801@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 May 2008 09:37:01 +0300
Andriy Gapon <avg@icyb.net.ua> wrote:

> >> But, by the way, there is a (slightly) more valid reason to want to 
> >> create a directory under /dev, I recently had it. For one non-standard 
> >> third-party application I needed to create a link to existing device in 
> >> a certain subdirectory. I.e.:
> >> /dev/subdirX/device -> /dev/deviceX
> >> And I couldn't do that.
> >> Or maybe link operation for devfs just needs to be taught about creating 
> >> subdirectories on demand. I don't know.  
> > 
> > you can create links with devfs - man devfs.conf
> > [...]
> > link    This action creates a symbolic link named arg that points to
> >              devname, the name of the device created by devfs(5).
> > [..]  
> 
> I do know that.
> Maybe I wasn't clear enough: "/dev/deviceX" was existing device node and 
> I needed to create "/dev/subdirX/device" link, where directory 
> "/dev/subdirX" didn't exist.
> Any help on this?

Not sure, but like someone mentioned parts of the system create this (geom?) . you can check its code to see how its done.

good luck,
B
_________________________
{Beto|Norberto|Numard} Meijome

Commitment is active, not passive. Commitment is doing whatever you can to bring about the desired result. Anything less is half-hearted.

I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.



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