VFS(?) weirdness

David Malone dwmalone at maths.tcd.ie
Tue Sep 19 07:09:56 PDT 2006


On Tue, Sep 19, 2006 at 05:37:02PM +0400, Gleb Smirnoff wrote:
>   Dear collegues,
> 
>   I've got a box running HEAD where a strange bug is observed. The below
> script always returns on this box:
> 
> pwd: .: Permission denied

I've tried this on a current machine (as of Sept 16th) and don't
see the same thing.

I'd guess this is somehow related to the fact that removing a
directory flushes the nami cache for things related to that directory's
parent. This probably results in the kernel getcwd failing and it
falling back to the userland getcwd code, which needs to read and
stat every directory above you in the filesystem tree. Do you have
a directory further up your path that isn't readable/statable?

	David.


More information about the freebsd-current mailing list