NFSv4.1: Work around a Linux server bug...
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 9 May 2017 19:47:15 +0000 (15:47 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:47:53 +0000 (19:47 +0200)
commitfca22d52b70fe72d9b8f55177ccc01ea743aa76a
treeec6a67479e0c8d3601dc7ae5b484b4214395f6df
parent408719afbc61e388b1dc311d96a85e5d5e6e8f39
NFSv4.1: Work around a Linux server bug...

[ Upstream commit f4b23de3dda1536590787c9e5c3d16b8738ab108 ]

It turns out the Linux server has a bug in its implementation of
supattr_exclcreat; it returns the set of all attributes, whether
or not they are supported by minor version 1.
In order to avoid a regression, we therefore apply the supported_attrs
as a mask on top of whatever the server sent us.

Reported-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c