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

[ Available lists | Index of freebsd-hackers | Month of Mar 2010 | Week of 11 Mar 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Jaakko Heinonen <jh@FreeBSD.org>
Date
11 Mar 2010 13:17:35
Subject
Re: namei() returns EISDIR for "/" (Re: svn commit: r203990 - head/lib/libc/sys)
Message-ID
20100311131728.GC3008@a91-153-117-195.elisa-laajakaista.fi

In reply to

[ Hide this part ]
On 2010-03-11, Alexander Best wrote:
> in sys/kern/vfs_syscalls.c:kern_rmdirat() there's still local code to check
> for "." and "/" after applying your patch. isn't this all being done by
> calling namei() now?

Looking at it quickly I think that the "." case is handled by lookup()
since r199137. However the VV_ROOT test is for all mount points not just
for "/".

--
Jaakko

Elapsed time: 1.409 seconds