18 Oct, 2013

1 commit

  • commit 9d05746e7b16d8565dddbe3200faa1e669d23bbf upstream.

    Olga reported that file descriptors opened with O_PATH do not work with
    fstatfs(), found during further development of ksh93's thread support.

    There is no reason to not allow O_PATH file descriptors here (fstatfs is
    very much a path operation), so use "fdget_raw()". See commit
    55815f70147d ("vfs: make O_PATH file descriptors usable for 'fstat()'")
    for a very similar issue reported for fstat() by the same team.

    Reported-and-tested-by: ольга крыжановская
    Acked-by: Al Viro
    Signed-off-by: Linus Torvalds
    Signed-off-by: Greg Kroah-Hartman

    Linus Torvalds
     

21 Dec, 2012

1 commit


27 Sep, 2012

1 commit


30 May, 2012

1 commit


29 Feb, 2012

1 commit


04 Jan, 2012

1 commit


05 Nov, 2011

1 commit

  • No one in their right mind would expect statfs() to not work on a
    automounter managed mount point. Fix it.

    [ I'm not sure about the "no one in their right mind" part. It's not
    mounted, and you didn't ask for it to be mounted. But nobody will
    really care, and this probably makes it match previous semantics, so..
    - Linus ]

    This mirrors the fix made to the quota code in 815d405ceff0d69646.

    Signed-off-by: Dan McGee
    Cc: Trond Myklebust
    Cc: Alexander Viro
    Cc: stable@kernel.org
    Signed-off-by: Linus Torvalds

    Dan McGee
     

14 Mar, 2011

1 commit

  • New helpers: user_statfs() and fd_statfs(), taking userland pathname and
    descriptor resp. and filling struct kstatfs. Syscalls of statfs family
    (native, compat and foreign - osf and hpux on alpha and parisc resp.)
    switched to those. Removes some boilerplate code, simplifies cleanup
    on errors...

    Signed-off-by: Al Viro

    Al Viro
     

10 Aug, 2010

2 commits

  • Add a flags field to help glibc implementing statvfs(3) efficiently.

    We copy the flag values from glibc, and add a new ST_VALID flag to
    denote that f_flags is implemented.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Al Viro

    Christoph Hellwig
     
  • We'll need the path to implement the flags field for statvfs support.
    We do have it available in all callers except:

    - ecryptfs_statfs. This one doesn't actually need vfs_statfs but just
    needs to do a caller to the lower filesystem statfs method.
    - sys_ustat. Add a non-exported statfs_by_dentry helper for it which
    doesn't won't be able to fill out the flags field later on.

    In addition rename the helpers for statfs vs fstatfs to do_*statfs instead
    of the misleading vfs prefix.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Al Viro

    Christoph Hellwig
     

22 May, 2010

1 commit