From owner-cvs-all Sun May 13 23:13:45 2001 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id B140737B43F; Sun, 13 May 2001 23:13:41 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f4E6DSp16604; Mon, 14 May 2001 08:13:28 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Kris Kennaway Cc: Eric Melville , Greg Lehey , 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: Your message of "Sun, 13 May 2001 19:36:09 PDT." <20010513193608.A48014@xor.obsecurity.org> Date: Mon, 14 May 2001 08:13:28 +0200 Message-ID: <16602.989820808@critter> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20010513193608.A48014@xor.obsecurity.org>, Kris Kennaway writes: >Actually I was being tongue-in-cheek; I'm not sure how a userland >wrapper for make_dev() would DTRT if you accidentally remove a device >and then want to recreate it. phk's suggestion was making remove only >whiteout the device node, so you can undelete it with rm -W. When you rm(1) a device in DEVFS the dev_t is not destroyed, it is just marked as "not in this mount". -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message