From owner-freebsd-current Sat May 30 00:51:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA13010 for freebsd-current-outgoing; Sat, 30 May 1998 00:51:25 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA13001 for ; Sat, 30 May 1998 00:51:13 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id AAA29816; Sat, 30 May 1998 00:50:29 -0700 (PDT) Message-Id: <199805300750.AAA29816@implode.root.com> To: Greg Lehey cc: Peter Wemm , "Jordan K. Hubbard" , Eivind Eklund , current@FreeBSD.ORG Subject: Re: Creating/deleting devfs nodes (was: I see one major problem with DEVFS...) In-reply-to: Your message of "Sat, 30 May 1998 15:30:46 +0930." <19980530153046.E20360@freebie.lemis.com> From: David Greenman Reply-To: dg@root.com Date: Sat, 30 May 1998 00:50:29 -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >On Sat, 30 May 1998 at 13:11:29 +0800, Peter Wemm wrote: >> For the problem at hand though, I once suggested to Julian that we use >> undelete(2) to make files come back. "rm -W bpf4" could almost work as is, >> except that it wants to stat the file and look for whiteout flags first and >> 'rm' doesn't create a whiteout in devfs. (This might be an interesting >> approach to the problem if all unlinks caused a whiteout instead of the >> node disappearing entirely.) > >I don't really understand this. > >1. Why should it be possible to delete a device node from devfs? It > shouldn't be possible to remove individual nodes without removing > their functionality. rm isn't the right tool to do that, and I'd > consider it a bug to allow it. Yeah, people should use the file permissions to deny access to a device, not rm. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message