xfs
[Top] [All Lists]

Re: XFS internal error when NFS client accesses nonexistent inode

To: Mario Becroft <mb@xxxxxxxxxxxxx>
Subject: Re: XFS internal error when NFS client accesses nonexistent inode
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Thu, 1 Jan 2009 12:37:56 -0500
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20090101171409.GA18020@xxxxxxxxxxxxx>
References: <87zlicfncr.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20090101171409.GA18020@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.18 (2008-05-17)
This should cure your shutdowns on a 2.6.27-ish codebase:



Index: btrfs-unstable/fs/xfs/linux-2.6/xfs_export.c
===================================================================
--- btrfs-unstable.orig/fs/xfs/linux-2.6/xfs_export.c   2009-01-01 
18:34:39.868671500 +0100
+++ btrfs-unstable/fs/xfs/linux-2.6/xfs_export.c        2009-01-01 
18:35:37.224782654 +0100
@@ -127,8 +127,8 @@ xfs_nfs_get_inode(
        if (ino == 0)
                return ERR_PTR(-ESTALE);
 
-       error = xfs_iget(mp, NULL, ino, 0, XFS_ILOCK_SHARED, &ip, 0);
+       error = xfs_iget(mp, NULL, ino, XFS_IGET_BULKSTAT, XFS_ILOCK_SHARED, 
&ip, 0);
                return ERR_PTR(-error);
        if (!ip)
                return ERR_PTR(-EIO);

<Prev in Thread] Current Thread [Next in Thread>