From owner-freebsd-stable@FreeBSD.ORG Thu May 22 07:02:16 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 7E8CC1065672 for ; Thu, 22 May 2008 07:02:16 +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 3CB028FC43 for ; Thu, 22 May 2008 07:02:16 +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 1Jz4oY-000AE6-9D; Thu, 22 May 2008 10:02:14 +0300 Message-ID: <48351A70.8090402@icyb.net.ua> Date: Thu, 22 May 2008 10:02:08 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.12 (X11/20080320) MIME-Version: 1.0 To: "Carlos A. M. dos Santos" , freebsd-stable@freebsd.org References: 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: Thu, 22 May 2008 07:02:16 -0000 Carlos A. M. dos Santos wrote: > On Wed, May 21, 2008 at 2:06 PM, Oliver Fromme wrote: >> Carlos A. M. dos Santos <> wrote: >> > I attempted this: >> > >> > # mkdir /dev/foo >> > mkdir: /dev/foo: Operation not supported >> >> DEVFS is a "virtual" filesystem [...] > > I already knew that. :-) > >> > Any suggestions (besides creating it elsewhere, of course)? >> >> That depends on the purpose. *Why* do you want to create >> a subdirectory in /dev? What do you want to do with it? > > I intended to use it as the mount point for a filesystem. I think this is a quite weird idea. Why would you want another filesystem under /dev? /dev is for devices! Maybe you want something like /mnt or whatever, unless you are developing your own "sub-" devfs. 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. -- Andriy Gapon