From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p6EMVUQ6168915 for ; Thu, 14 Jul 2011 17:31:30 -0500 Date: Thu, 14 Jul 2011 18:31:26 -0400 From: Christoph Hellwig Subject: Re: [PATCH] xfs: failure mapping nfs fh to inode should return ESTALE Message-ID: <20110714223126.GA28694@infradead.org> References: <20110714205036.GA19457@fieldses.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110714205036.GA19457@fieldses.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: "J. Bruce Fields" Cc: xfs-masters@oss.sgi.com, linux-nfs@vger.kernel.org, xfs@oss.sgi.com, Alex Elder On Thu, Jul 14, 2011 at 04:50:36PM -0400, J. Bruce Fields wrote: > From: J. Bruce Fields > > On xfs exports, nfsd is incorrectly returning ENOENT instead of ESTALE > on attempts to use a filehandle of a deleted file (spotted with pynfs > test PUTFH3). The ENOENT was coming from xfs_iget. With that you mean the ip->i_d.di_mode checks? Given that we should only be bale to get these from NFS or the handle ioctls I suspect just turning them into ESTALE should be fine. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs