Commit 96369461 authored by Anna Schumaker's avatar Anna Schumaker

NFSv4.2: Add special handling for LISTXATTR receiving NFS4ERR_NOXATTR

We can translate this into an empty response list instead of passing an
error up to userspace.
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent a035618c
...@@ -569,6 +569,14 @@ static int decode_listxattrs(struct xdr_stream *xdr, ...@@ -569,6 +569,14 @@ static int decode_listxattrs(struct xdr_stream *xdr,
*/ */
if (status == -ETOOSMALL) if (status == -ETOOSMALL)
status = -ERANGE; status = -ERANGE;
/*
* Special case: for LISTXATTRS, NFS4ERR_NOXATTR
* should be translated to success with zero-length reply.
*/
if (status == -ENODATA) {
res->eof = true;
status = 0;
}
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment