From owner-freebsd-stable@FreeBSD.ORG Sun May 25 10:31:29 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 24A751065671 for ; Sun, 25 May 2008 10:31:29 +0000 (UTC) (envelope-from jille@quis.cx) Received: from istud.quis.cx (ip83-113-174-82.adsl2.versatel.nl [82.174.113.83]) by mx1.freebsd.org (Postfix) with ESMTP id D3BFC8FC1F for ; Sun, 25 May 2008 10:31:28 +0000 (UTC) (envelope-from jille@quis.cx) Received: by istud.quis.cx (Postfix, from userid 100) id 5BFA639820; Sun, 25 May 2008 12:12:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on istud.quis.cx X-Spam-Level: X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from [192.168.1.4] (ille [192.168.1.4]) by istud.quis.cx (Postfix) with ESMTP id 75C813981D; Sun, 25 May 2008 12:12:13 +0200 (CEST) Message-ID: <48393B70.7010405@quis.cx> Date: Sun, 25 May 2008 12:12:00 +0200 From: Jille User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG, avg@icyb.net.ua References: <200805231600.m4NG0oWq025982@lurza.secnetix.de> In-Reply-To: <200805231600.m4NG0oWq025982@lurza.secnetix.de> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; 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: Sun, 25 May 2008 10:31:29 -0000 Please note that unionfs still has a few bugs! You will need at least patchset p19 for mounting devfs below/above unionfs mounts. There is also a patchset p20, still experimental, you might want to try it. -- Jille Oliver Fromme schreef: > 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. > > You could create a directory elsewhere and use UNIONFS to > merge it with your existing /dev. I haven't tried this, > but I think it should work. > > # mkdir /mydev > # mount -t unionfs -o below /mydev /dev > # cd /mydev > # mkdir subdirX > # ln -s /dev/deviceX subdirX/device > > The "-o below" option is used so that any modifications on > /dev -- such as creating symlinks -- still happen on the > real /dev, not on /mydev. > > Best regards > Oliver >