From: David Howells <dhowells@redhat.com>
To: miklos@szeredi.hu, raven@themaw.net, viro@ZenIV.linux.org.uk,
torvalds@linux-foundation.org
Cc: dhowells@redhat.com, jlayton@redhat.com, gregkh@suse.de,
linux-nfs@vger.kernel.org, leonardo.lists@gmail.com
Subject: [RFC][PATCH 0/7] Automount behaviour correction
Date: Fri, 23 Sep 2011 17:24:38 +0100 [thread overview]
Message-ID: <20110923162438.13574.52985.stgit@warthog.procyon.org.uk> (raw)
Here are a set of patches to correct the behaviour of automounting, hopefully
without introducing extra fragility. We might want to merge them together in
various ways, and the last one or two patches we may want to drop, depending on
what we actually want the behaviour to actually be.
They are:
(1) Revert Miklos's patch. Not strictly a necessary part of the series, but
it does fix the NFS4 regression immediately.
(2) Make chown and lchown jump to fchownat with appropriate flags. This is a
useful cleanup for the following patches.
(3) Replace LOOKUP_NO_AUTOMOUNT with LOOKUP_AUTOMOUNT and set it where
appropriate before calling pathwalk (usually when we'd be setting
LOOKUP_FOLLOW). This just switches the polarity of the flag.
(4) Move the automount/no-automount policy to the callers of pathwalk so that
things such as NFS4 don't get caught out by changes to the policy. The
policy is outlined in that patch header.
(5) Remove the logic from follow_automount() to try and guess from the
LOOKUP_* flags whether or not we should be automounting this time. It's
shown to be a bit fragile and the policy is better predetermined by this
point.
(6) Make stat and xattr unconditionally _not_ automount. This reinstates the
old autofs behaviour, but does then regress NFS, AFS and CIFS.
(7) Make stat and xattr vary their behaviour depending on whether the
automount point belongs to autofs or not. This should reinstate the NFS,
AFS and CIFS behaviour without regressing autofs.
Now if we want 6 and maybe 7, these can be rolled into 4. Patch 1 can be
discarded entirely if 5 is taken.
David
---
David Howells (7):
VFS: Vary the automounting rules for autofs
VFS: Make stat and xattr calls not automount
VFS: Ignore symlink following advice when pathwalking
VFS: Move the automount suppression decision out to the initial callers of
VFS: Change LOOKUP_NO_AUTOMOUNT to LOOKUP_AUTOMOUNT
VFS: Make chown() and lchown() call fchownat()
NFS4: Revert commit to make the automount code ignore LOOKUP_FOLLOW
drivers/mtd/ubi/build.c | 2 +
drivers/mtd/ubi/kapi.c | 2 +
fs/autofs4/dev-ioctl.c | 2 +
fs/block_dev.c | 2 +
fs/configfs/symlink.c | 2 +
fs/ecryptfs/main.c | 2 +
fs/exec.c | 5 ++-
fs/fhandle.c | 11 +++----
fs/gfs2/ops_fstype.c | 2 +
fs/internal.h | 24 +++++++++++++++
fs/namei.c | 30 ++++++-------------
fs/namespace.c | 8 +++--
fs/nfs/super.c | 2 +
fs/nfsd/nfs4state.c | 2 +
fs/notify/fanotify/fanotify_user.c | 2 +
fs/notify/inotify/inotify_user.c | 2 +
fs/open.c | 57 +++++++++---------------------------
fs/quota/quota.c | 2 +
fs/stat.c | 20 ++++++-------
fs/statfs.c | 2 +
fs/utimes.c | 14 ++++-----
fs/xattr.c | 24 ++++++++++-----
include/linux/fcntl.h | 1 +
include/linux/namei.h | 10 ++++--
net/unix/af_unix.c | 2 +
security/tomoyo/load_policy.c | 2 +
security/tomoyo/mount.c | 3 +-
27 files changed, 116 insertions(+), 121 deletions(-)
next reply other threads:[~2011-09-23 16:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 16:24 David Howells [this message]
2011-09-23 16:24 ` [PATCH 1/7] NFS4: Revert commit to make the automount code ignore LOOKUP_FOLLOW David Howells
2011-09-23 16:35 ` Linus Torvalds
2011-09-23 16:53 ` David Howells
2011-09-23 16:25 ` [PATCH 2/7] VFS: Make chown() and lchown() call fchownat() David Howells
2011-09-23 16:25 ` [PATCH 3/7] VFS: Change LOOKUP_NO_AUTOMOUNT to LOOKUP_AUTOMOUNT David Howells
2011-09-23 16:25 ` [PATCH 4/7] VFS: Move the automount suppression decision out to the initial callers of David Howells
2011-09-23 16:25 ` [PATCH 5/7] VFS: Ignore symlink following advice when pathwalking David Howells
2011-09-23 16:25 ` [PATCH 6/7] VFS: Make stat and xattr calls not automount David Howells
2011-09-23 16:26 ` [PATCH 7/7] VFS: Vary the automounting rules for autofs David Howells
2011-09-23 16:29 ` [RFC][PATCH 0/7] Automount behaviour correction Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110923162438.13574.52985.stgit@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=gregkh@suse.de \
--cc=jlayton@redhat.com \
--cc=leonardo.lists@gmail.com \
--cc=linux-nfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=raven@themaw.net \
--cc=torvalds@linux-foundation.org \
--cc=viro@ZenIV.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).