From owner-freebsd-stable@FreeBSD.ORG Fri May 23 06:37:12 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 3168A1065674 for ; Fri, 23 May 2008 06:37:12 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from hosted.kievnet.com (hosted.kievnet.com [193.138.144.10]) by mx1.freebsd.org (Postfix) with ESMTP id E40EB8FC1F for ; Fri, 23 May 2008 06:37:11 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost ([127.0.0.1] helo=edge.pp.kiev.ua) by hosted.kievnet.com with esmtpa (Exim 4.62) (envelope-from ) id 1JzQtp-0002w1-4b; Fri, 23 May 2008 09:37:09 +0300 Message-ID: <4836660D.1070801@icyb.net.ua> Date: Fri, 23 May 2008 09:37:01 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.12 (X11/20080320) MIME-Version: 1.0 To: Norberto Meijome , freebsd-stable@freebsd.org References: <48351A70.8090402@icyb.net.ua> In-Reply-To: <48351A70.8090402@icyb.net.ua> References: <20080523110556.485afa89@ayiin> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Fri, 23 May 2008 06:37:12 -0000 Norberto Meijome wrote: > On Thu, 22 May 2008 10:02:08 +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? -- Andriy Gapon