]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:24:42 +0000 (18:24 -0600)
commit64fdede97a7c38889dd9b9016aac3e2afc23412b
tree7720853d47491bfbbe3b8f365fed56b9f8cac25b
parent5a099d740ffdff7b217f23d7d871c4fb0c24a24b
NFS: Don't silently fail setattr() requests on mountpoints

commit ab225417825963b6dc66be7ea80f94ac1378dfdf upstream.

Ensure that any setattr and getattr requests for junctions and/or
mountpoints are sent to the server. Ever since commit
0ec26fd0698 (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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/namespace.c