diff mbox

[Bakeathon,1/2] NFSv4.1: allow referral directories to be displayed by readdir

Message ID 1308174760-22825-1-git-send-email-andros@netapp.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andy Adamson June 15, 2011, 9:52 p.m. UTC
From: Andy Adamson <andros@rhel6.dros.org>

Signed-off-by: Andy Adamson <andros@netapp.com>
cc:stable@kernel.org [2.6.39]
---
 fs/nfs/nfs4xdr.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 11ad51e..9066f0c 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -4221,6 +4221,9 @@  static int decode_getfattr_attrs(struct xdr_stream *xdr, uint32_t *bitmap,
 		nfs_fixup_secinfo_attributes(fattr, fh);
 		status = 0;
 	}
+	/* Allow referrals to be displayed.*/
+	if (status == -NFS4ERR_MOVED)
+		status = 0;
 	if (status < 0)
 		goto xdr_error;