From owner-freebsd-stable@FreeBSD.ORG Fri May 23 16:00:54 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 BC1201065677 for ; Fri, 23 May 2008 16:00:54 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1973E8FC15 for ; Fri, 23 May 2008 16:00:53 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m4NG0o1t025983; Fri, 23 May 2008 18:00:52 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m4NG0oWq025982; Fri, 23 May 2008 18:00:50 +0200 (CEST) (envelope-from olli) Date: Fri, 23 May 2008 18:00:50 +0200 (CEST) Message-Id: <200805231600.m4NG0oWq025982@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, avg@icyb.net.ua In-Reply-To: <48351A70.8090402@icyb.net.ua> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 23 May 2008 18:00:53 +0200 (CEST) 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 Reply-To: freebsd-stable@FreeBSD.ORG, avg@icyb.net.ua 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 16:00:54 -0000 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 -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Passwords are like underwear. You don't share them, you don't hang them on your monitor or under your keyboard, you don't email them, or put them on a web site, and you must change them very often.