All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 0/7] Automount behaviour correction
@ 2011-09-23 16:24 David Howells
  2011-09-23 16:24 ` [PATCH 1/7] NFS4: Revert commit to make the automount code ignore LOOKUP_FOLLOW David Howells
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: David Howells @ 2011-09-23 16:24 UTC (permalink / raw)
  To: miklos, raven, viro, torvalds
  Cc: dhowells, jlayton, gregkh, linux-nfs, leonardo.lists



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(-)


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-09-23 16:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-23 16:24 [RFC][PATCH 0/7] Automount behaviour correction David Howells
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.