]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NFSv4: Fix exclusive create attributes encoding
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 6 May 2017 16:19:11 +0000 (12:19 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 8 May 2017 13:40:59 +0000 (09:40 -0400)
commit28cf22d0ba283deccc30b71de5f34d222cf9aa4c
tree14438a4abda155261e1dccf8922c3e9b511f304a
parent2e84611b3f4fa50e1f4c12f2966fcc7fb955d944
NFSv4: Fix exclusive create attributes encoding

When using NFS4_CREATE_EXCLUSIVE4_1 mode, the client will overestimate the
amount of space that it needs for the attributes because it does so
before checking whether or not the server supports a given attribute.

Fix by checking the attribute mask earlier.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4xdr.c