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:50:03 +0000 (19:50 +0200)
commitff151a614671fa7db3854f5b578a165af9de11a2
tree7a3acd2b6d09c7a77722bb705ebad66d25ef8cfe
parentecd9a27e6d4aaaf64563daf98201cf19a94890bf
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