]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't silently fail setattr() requests on mountpoints
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 22 Jan 2013 05:17:06 +0000 (00:17 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 30 Jan 2013 22:41:04 +0000 (17:41 -0500)
commit80c39f65793410afc96b414131e4184a445b210d
treec1e92f88e3d3633993e7460019a388cd5890545b
parent9f390104c4212e10b3c9ea1e02fd555260d57ea9
NFS: Don't silently fail setattr() requests on mountpoints

Ensure that any setattr and getattr requests for junctions and/or
mountpoints are sent to the server. Ever since commit
449dadaedf2 (vfs: automount should ignore LOOKUP_FOLLOW), we have
silently dropped any setattr requests to a server-side mountpoint.
For referrals, we have silently dropped both getattr and setattr
requests.

This patch restores the original behaviour for setattr on mountpoints,
and tries to do the same for referrals, provided that we have a
filehandle...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
fs/nfs/namespace.c