From owner-freebsd-stable@FreeBSD.ORG Sun May 25 08:55:37 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39441106564A for ; Sun, 25 May 2008 08:55:37 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id AFF5C8FC1A for ; Sun, 25 May 2008 08:55:36 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 25206 invoked from network); 25 May 2008 03:55:36 -0500 Received: from 124-171-240-53.dyn.iinet.net.au (HELO ayiin) (124.171.240.53) by sigma.octantis.com.au with (DHE-RSA-AES128-SHA encrypted) SMTP; 25 May 2008 03:55:35 -0500 Date: Sun, 25 May 2008 18:55:03 +1000 From: Norberto Meijome To: FreeBSD Stable ML Message-ID: <20080525185503.7642e736@ayiin> In-Reply-To: <4836660D.1070801@icyb.net.ua> References: <48351A70.8090402@icyb.net.ua> <4836660D.1070801@icyb.net.ua> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Is it possible to create a directory under /dev? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 May 2008 08:55:37 -0000 On Fri, 23 May 2008 09:37:01 +0300 Andriy Gapon 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.