From owner-cvs-all Mon May 14 6:43:59 2001 Delivered-To: cvs-all@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id C9B1037B422; Mon, 14 May 2001 06:43:51 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.3/8.11.3) with SMTP id f4EDhXf70758; Mon, 14 May 2001 09:43:35 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Mon, 14 May 2001 09:43:33 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Greg Lehey Cc: Eric Melville , Kris Kennaway , Poul-Henning Kamp , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: Destroying and remaking device nodes (was: cvs commit: src/sys/conf files options src/sys/alpha/conf GENERIC src/sys/i386/conf GENERIC NEWCARD NOTES src/sys/ia64/conf GENERIC src/sys/pc98/conf GENERIC src/sys/fs/devfs devfs_devs.c devfs_vfsops.c devfs_vnops.c) In-Reply-To: <20010514105122.G88359@wantadilla.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 14 May 2001, Greg Lehey wrote: > On Sunday, 13 May 2001 at 18:13:54 -0700, Eric Melville wrote: > >>> destroy_dev to remove the node, make_dev to make it. Take a look at > >>> dev/vinum/vinumconfig.c and dev/vinum/vinum.c. > >> > >> Do those exist as userland commands? :) > > > > http://people.FreeBSD.org/~eric/devrm.c > > > > I'm not sure what the best way to check for devfs is, but this looks > > reasonable. If people think it looks alright, I'll add the usual > > license and id tag tidbits, and add it to the tree. Hopefully I'll > > be able to do a devmk tomorrow. I'm also welcome to other names if > > devrm and devmk do not sound appropriate. > > I'd prefer another name: rm. > > There are two issues here. Firstly, in the past it has always been > possible to remove device nodes with rm(1). If we want to keep this > functionality, we should not change the way we do it. Personally, I'd like to see rm unmodified: part of the goal here is to allow /dev to act like a normal file system from the perspective of management tools (including things like graphical file managers). Modifying base system tools is going to hurt later. We should really just allow rm and rm -W to work as normal. They use documented APIs as they exist already. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message