Date: Mon, 14 May 2001 10:51:22 +0930 From: Greg Lehey <grog@lemis.com> To: Eric Melville <eric@FreeBSD.org> Cc: Kris Kennaway <kris@obsecurity.org>, Poul-Henning Kamp <phk@FreeBSD.org>, 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) Message-ID: <20010514105122.G88359@wantadilla.lemis.com> In-Reply-To: <20010513181354.A46193@FreeBSD.org>; from eric@FreeBSD.org on Sun, May 13, 2001 at 06:13:54PM -0700 References: <200105132052.f4DKqfo39754@freefall.freebsd.org> <20010513141237.A63235@xor.obsecurity.org> <20010514074016.N86168@wantadilla.lemis.com> <20010513151500.A27277@xor.obsecurity.org> <20010514075417.A88359@wantadilla.lemis.com> <20010513152842.A28203@xor.obsecurity.org> <20010513181354.A46193@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. On the other hand, though, is that what we want to do? destroy_dev is only half the picture. How do you recreate it? mknod has effectively been consigned to the scrap heap. I'm sure phk will come up with some valid arguments when he wakes up. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010514105122.G88359>