Re: XFS internal error when NFS client accesses nonexistent inode

Christoph Hellwig
2009-01-01T17:37:57Z

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);