Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2001 08:13:28 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        Eric Melville <eric@FreeBSD.org>, Greg Lehey <grog@lemis.com>, 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:  <16602.989820808@critter>
In-Reply-To: Your message of "Sun, 13 May 2001 19:36:09 PDT." <20010513193608.A48014@xor.obsecurity.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16602.989820808>