From owner-freebsd-stable@FreeBSD.ORG Fri May 23 09:42:24 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 0EA8A1065676 for ; Fri, 23 May 2008 09:42:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 60B4F8FC29 for ; Fri, 23 May 2008 09:42:23 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m4N9GS6C030959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 23 May 2008 12:16:28 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m4N9GRvL059552; Fri, 23 May 2008 12:16:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m4N9GRQW059551; Fri, 23 May 2008 12:16:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 23 May 2008 12:16:27 +0300 From: Kostik Belousov To: Andriy Gapon Message-ID: <20080523091627.GK29770@deviant.kiev.zoral.com.ua> References: <20080523110556.485afa89@ayiin> <4836660D.1070801@icyb.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DfnuYBTqzt7sVGu3" Content-Disposition: inline In-Reply-To: <4836660D.1070801@icyb.net.ua> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua Cc: freebsd-stable@freebsd.org, Norberto Meijome 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 09:42:24 -0000 --DfnuYBTqzt7sVGu3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 23, 2008 at 09:37:01AM +0300, Andriy Gapon wrote: > 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=20 > >>create a directory under /dev, I recently had it. For one non-standard= =20 > >>third-party application I needed to create a link to existing device in= =20 > >>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 creatin= g=20 > >>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). > >[..] >=20 > I do know that. > Maybe I wasn't clear enough: "/dev/deviceX" was existing device node and= =20 > I needed to create "/dev/subdirX/device" link, where directory=20 > "/dev/subdirX" didn't exist. > Any help on this? As an ugly workaround, you may create an directory on ufs filesystem, populate it with needed symlinks, and then make a symlink /dev/subdirX -> the directory. I would prefer not to allow users to create the directories on the devfs. On the other hand, I like Solaris approach with devfs on /devices and /dev being populated with short symlinks to ../devices. --DfnuYBTqzt7sVGu3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkg2i2oACgkQC3+MBN1Mb4hrBACgoejZ/alwX03AaOG6uU4LC2XN l6oAn0aFP6N2WEmRt7TxGpYBQnDyFCJn =F0gP -----END PGP SIGNATURE----- --DfnuYBTqzt7sVGu3--