1. 15 6月, 2012 1 次提交
  2. 12 6月, 2012 4 次提交
  3. 10 6月, 2012 2 次提交
  4. 08 6月, 2012 3 次提交
  5. 07 6月, 2012 2 次提交
  6. 06 6月, 2012 2 次提交
  7. 05 6月, 2012 4 次提交
  8. 02 6月, 2012 1 次提交
    • M
      nfs: don't open in ->d_revalidate · 0ef97dcf
      Miklos Szeredi 提交于
      NFSv4 can't do reliable opens in d_revalidate, since it cannot know whether a
      mount needs to be followed or not.  It does check d_mountpoint() on the dentry,
      which can result in a weird error if the VFS found that the mount does not in
      fact need to be followed, e.g.:
      
        # mount --bind /mnt/nfs /mnt/nfs-clone
        # echo something > /mnt/nfs/tmp/bar
        # echo x > /tmp/file
        # mount --bind /tmp/file /mnt/nfs-clone/tmp/bar
        # cat  /mnt/nfs/tmp/bar
        cat: /mnt/nfs/tmp/bar: Not a directory
      
      Which should, by any sane filesystem, result in "something" being printed.
      
      So instead do the open in f_op->open() and in the unlikely case that the cached
      dentry turned out to be invalid, drop the dentry and return EOPENSTALE to let
      the VFS retry.
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      CC: Trond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      0ef97dcf
  9. 01 6月, 2012 4 次提交
  10. 29 5月, 2012 2 次提交
  11. 28 5月, 2012 6 次提交
  12. 27 5月, 2012 2 次提交
  13. 26 5月, 2012 6 次提交
  14. 25 5月, 2012 1 次提交