1. 19 Jan, 2009 2 commits
    • Christoph Hellwig's avatar
      xfs: use mnt_want_write in compat_attrmulti ioctl · 62e194ec
      Christoph Hellwig authored
      The compat version of the attrmulti ioctl needs to ask for and then
      later release write access to the mount just like the native version,
      otherwise we could potentially write to read-only mounts.
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Reviewed-by: default avatarDave Chinner <david@fromorbit.com>
      62e194ec
    • Christoph Hellwig's avatar
      xfs: fix dentry aliasing issues in open_by_handle · ab596ad8
      Christoph Hellwig authored
      Open by handle just grabs an inode by handle and then creates itself
      a dentry for it.  While this works for regular files it is horribly
      broken for directories, where the VFS locking relies on the fact that
      there is only just one single dentry for a given inode, and that
      these are always connected to the root of the filesystem so that
      it's locking algorithms work (see Documentations/filesystems/Locking)
      
      Remove all the existing open by handle code and replace it with a small
      wrapper around the exportfs code which deals with all these issues.
      At the same time we also make the checks for a valid handle strict
      enough to reject all not perfectly well formed handles - given that
      we never hand out others that's okay and simplifies the code.
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Reviewed-by: default avatarDave Chinner <david@fromorbit.com>
      ab596ad8
  2. 17 Jan, 2009 5 commits
  3. 16 Jan, 2009 33 commits