From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p6IDbNok103188 for ; Mon, 18 Jul 2011 08:37:24 -0500 Date: Mon, 18 Jul 2011 09:37:10 -0400 From: "J. Bruce Fields" Subject: Re: [xfs-masters] [PATCH] xfs: failure mapping nfs fh to inode should return ESTALE Message-ID: <20110718133710.GB9741@fieldses.org> References: <20110714205036.GA19457@fieldses.org> <20110714223126.GA28694@infradead.org> <20110716015014.GF21663@dastard> <20110716015346.GA589@infradead.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110716015346.GA589@infradead.org> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Christoph Hellwig Cc: xfs-masters@oss.sgi.com, linux-nfs@vger.kernel.org, xfs@oss.sgi.com On Fri, Jul 15, 2011 at 09:53:46PM -0400, Christoph Hellwig wrote: > On Sat, Jul 16, 2011 at 11:50:14AM +1000, Dave Chinner wrote: > > Bulkstat also checks for ENOENT returns from xfs_iget() as the > > lookup it does is inherently racy. That is, if the inode is > > allocated when it is read from the IBT, but then has been unlinked > > before the actual xfs_iget() call, it expects to get back an ENOENT > > to tell it the inode has been unlinked and shouldn't be included in > > the bulkstat output. Otherwise, it returns the error to userspace. > > > > So converting the mode checks to return ESTALE definitely has the > > chance of breaking stuff that uses bulkstat (e.g. xfsdump) because > > it will return errors now where it previously just skipped the > > (unlinked) inode. > > Sounds like we should simply go with the original version of the patch > then. OK. Let me know if someone needs that resent.... --b. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs