1. 08 Jun, 2005 39 commits
  2. 07 Jun, 2005 1 commit
    • Trond Myklebust's avatar
      [PATCH] NFS: Fix lookup intent handling · 1d6757fb
      Trond Myklebust authored
      We should never apply a lookup intent to anything other than the last
      path component in an open(), create() or access() call.
      
      Introduce the helper nfs_lookup_check_intent() which always returns
      zero if LOOKUP_CONTINUE or LOOKUP_PARENT are set, and returns the
      intent flags if we're on the last component of the lookup.
      By doing so, we fix a bug in open(O_EXCL), where we may end up
      optimizing away a real lookup of the parent directory.
      
      Problem noticed by Linda Dunaphant <linda.dunaphant@ccur.com>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      1d6757fb