From owner-freebsd-current@FreeBSD.ORG Tue Sep 19 14:09:56 2006 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 381B916A4A0; Tue, 19 Sep 2006 14:09:56 +0000 (UTC) (envelope-from dwmalone@maths.tcd.ie) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 5014C43D58; Tue, 19 Sep 2006 14:09:55 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie ([134.226.81.10] helo=walton.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 19 Sep 2006 15:09:54 +0100 (BST) Date: Tue, 19 Sep 2006 15:09:53 +0100 From: David Malone To: Gleb Smirnoff Message-ID: <20060919140953.GA46227@walton.maths.tcd.ie> References: <20060919133702.GJ27667@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060919133702.GJ27667@FreeBSD.org> User-Agent: Mutt/1.5.6i Sender: dwmalone@maths.tcd.ie Cc: current@FreeBSD.org Subject: Re: VFS(?) weirdness X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Sep 2006 14:09:56 -0000 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.