In message <[EMAIL PROTECTED]>, Alfred Perlstein writes:

>What's up with devfs not gc'ing itself?  Ie, after a directory
>becomes empty it seems to still exist within the devfs namespace
>instead of disappearing.

That was a deliberate decision, removing a directory(-inode) which
might have a valid vnode is kind of a nasty thing to attempt.

>Since you guys are in docco mode, you might as well document how one
>detects a devfs system in a running system.  There's an example
>in the vinum(8) source:
>    if (sysctlbyname("vfs.devfs.generation", NULL, NULL, NULL, 0) == 0)
>        devfs_is_active = 1;
>    else
>        devfs_is_active = 0;

Which is the correct and blessed way to find out.

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to