From owner-cvs-all Tue May 15 0:58:21 2001 Delivered-To: cvs-all@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 4C2D137B422; Tue, 15 May 2001 00:58:11 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4F7w8366206; Tue, 15 May 2001 08:58:08 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4F7w7535396; Tue, 15 May 2001 08:58:07 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105150758.f4F7w7535396@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Kris Kennaway Cc: Brian Somers , Alfred Perlstein , Poul-Henning Kamp , Robert Watson , Greg Lehey , Eric Melville , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org Subject: Re: Destroying and remaking device nodes In-Reply-To: Message from Kris Kennaway of "Mon, 14 May 2001 17:12:10 PDT." <20010514171210.A66354@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <35389.989913486.1@hak.lan.Awfulhak.org> Date: Tue, 15 May 2001 08:58:06 +0100 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Tue, May 15, 2001 at 12:54:04AM +0100, Brian Somers wrote: > > > * Poul-Henning Kamp [010514 07:08] wrote: > > > >=20 > > > > I intended to ignore the major and minor arguments in mknod(2), simply > > > > treating it as a request to re-create the named node. > > >=20 > > > It sounds nice, however that's a major POLA violation, no? > >=20 > > I agree. I think mknod should either do as asked or fail, not do=20 > > what the developer thinks the user should have asked. > > The problem is, how do you know the major/minor number of the device, > if you haven't installed MAKEDEV (which is about the only reference I > know of apart from the source)? Yes.... We really don't want to expose the major numbers to userland anyway (they should be hidden away as part of the implementation and maybe allocated on demand). Personally I prefer the ability to simply touch the name (as currently works with the clone handler): # cd dev # ls -l tun* ls: tun*: No such file or directory # touch tun2 # ls -l tun* crw------- 1 root wheel 52, 2 May 15 08:34 tun2 > Kris -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message