VFS bug
Michal Belczyk
diavul at bsd.krakow.pl
Sun Nov 28 11:46:32 PST 2004
On Sun, Nov 28, 2004 at 11:30:36AM -0800, Matthew Dillon wrote:
>
> :Shouldn't `mkdir /tmp/aaa && cd /tmp/aaa && rmdir .` fail?
> :
> :--
> :Michal Belczyk
>
> I'm not sure what pax is trying to do there, but it looks like
> something is rmdir'ing the directory you are CD'd into. If the
> directory is not empty then the rmdir will fail which is why creating
> the dummy file seemms to fix the problem.
>
> Once a directory is rmdir'd, that's it... it's dead, even if you are
> CD'd into it.
I was asking because `rmdir .` fails on FreeBSD:
/*
* No rmdir "." please.
*/
if (nd.ni_dvp == vp) {
error = EINVAL;
goto out;
}
> Could you ktrace the operation (ktrace -f /tmp/kt.out -i pax ....)
> and put the trace file up somewhere where we can download it (it
> will be too large to post) ?
It's at http://vanity.bsd.krakow.pl/kt.out
--
Michal Belczyk
More information about the Kernel
mailing list