]> www.infradead.org Git - users/jedix/linux-maple.git/commit
VFS: Fix the remaining automounter semantics regressions
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 25 Oct 2011 11:59:47 +0000 (13:59 +0200)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:18:00 +0000 (11:18 -0800)
commit287ae4107da386d1fb23bee63ff40a27abbd8505
treeb55989b0ce69fd42dae52ae110d4ec5dff80d7f7
parent35dfe24601723fd5872f64c6f84f322729136493
VFS: Fix the remaining automounter semantics regressions

commit 815d405ceff0d6964683f033e18b9b23a88fba87 upstream.

The concensus seems to be that system calls such as stat() etc should
not trigger an automount.  Neither should the l* versions.

This patch therefore adds a LOOKUP_AUTOMOUNT flag to tag those lookups
that _should_ trigger an automount on the last path element.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
[ Edited to leave out the cases that are already covered by LOOKUP_OPEN,
  LOOKUP_DIRECTORY and LOOKUP_CREATE - all of which also fundamentally
  force automounting for their own reasons   - Linus ]

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/namespace.c
fs/nfs/super.c
fs/quota/quota.c