namei() returns EISDIR for "/" (Re: svn commit: r203990 - head/lib/libc/sys)

Jaakko Heinonen jh at FreeBSD.org
Sun Mar 7 10:55:04 UTC 2010


On 2010-03-06, Garrett Cooper wrote:
> >
> >        http://people.freebsd.org/~jh/patches/lookup-root.2.diff
> 
> 1. EBUSY's new definition doesn't look correct for rename(2) given
> POSIX's definition (
> http://www.opengroup.org/onlinepubs/009695399/functions/rename.html ):
> 
> [EBUSY]
>     [CX] [Option Start] The directory named by old or new is currently
> in use by the system or another process, and the implementation
> considers this an error. [Option End]

Well, I don't think that it conflicts with POSIX. The root directory is
in use by the system and it's not allowed to be renamed.

> 2. I also did some quick snooping around and all filesystems that
> support symlinks that FreeBSD has, sans ZFS [*], seem to support
> EMLINK. Should we add this to the documentation?

Probably, but it's not related to the changes made by the patch.

-- 
Jaakko


More information about the freebsd-hackers mailing list