From owner-cvs-all Tue May 15 19:10: 2 2001 Delivered-To: cvs-all@freebsd.org Received: from smtp5ve.mailsrvcs.net (smtp5vepub.gte.net [206.46.170.26]) by hub.freebsd.org (Postfix) with ESMTP id 84C4B37B422; Tue, 15 May 2001 19:04:13 -0700 (PDT) (envelope-from babkin@bellatlantic.net) Received: from bellatlantic.net (client-151-198-135-5.nnj.dialup.bellatlantic.net [151.198.135.5]) by smtp5ve.mailsrvcs.net (8.9.1/8.9.1) with ESMTP id CAA5859987; Wed, 16 May 2001 02:08:26 GMT Message-ID: <3B01DFF2.87D3649@bellatlantic.net> Date: Tue, 15 May 2001 22:03:30 -0400 From: Sergey Babkin X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-19990626-CURRENT i386) X-Accept-Language: en, ru MIME-Version: 1.0 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 Subject: Re: Destroying and remaking device nodes References: <200105142354.f4ENs5514952@hak.lan.Awfulhak.org> <20010514171210.A66354@xor.obsecurity.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kris Kennaway wrote: > > On Tue, May 15, 2001 at 12:54:04AM +0100, Brian Somers wrote: > > > * Poul-Henning Kamp [010514 07:08] wrote: > > > > > > > > I intended to ignore the major and minor arguments in mknod(2), simply > > > > treating it as a request to re-create the named node. > > > > > > It sounds nice, however that's a major POLA violation, no? > > > > I agree. I think mknod should either do as asked or fail, not do > > 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)? How about making the major and minor arguments optional ? When ran on devfs, mknod would complain and fail if it was given explicit major/minor and create the file if not given. Whan ran on a common filesystem it would work the old way. -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message