From: andros@netapp.com
To: trond.myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org, Andy Adamson <andros@rhel6.dros.org>,
Andy Adamson <andros@netapp.com>
Subject: [PATCH Bakeathon 1/2] NFSv4.1: allow referral directories to be displayed by readdir
Date: Wed, 15 Jun 2011 17:52:39 -0400 [thread overview]
Message-ID: <1308174760-22825-1-git-send-email-andros@netapp.com> (raw)
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 --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;
--
1.7.3.1
next reply other threads:[~2011-06-16 15:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 21:52 andros [this message]
2011-06-15 21:52 ` [PATCH Bakeathon 2/2] NFSv4.1: do not use deviceids after MDS clientid invalidation andros
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1308174760-22825-1-git-send-email-andros@netapp.com \
--to=andros@netapp.com \
--cc=andros@rhel6.dros.org \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@netapp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).