Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Sep 2006 15:09:53 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: VFS(?) weirdness
Message-ID:  <20060919140953.GA46227@walton.maths.tcd.ie>
In-Reply-To: <20060919133702.GJ27667@FreeBSD.org>
References:  <20060919133702.GJ27667@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060919140953.GA46227>