diff options
author | Eric Wong <normalperson@yhbt.net> | 2014-05-29 09:41:29 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-05-29 09:41:29 +0530 |
commit | 26b0d2e1a1606da10c4dc4e109d7b9f2d92aab6a (patch) | |
tree | 80f00460ffda84fa25dae201b40c5442646cf213 /ChangeLog | |
parent | 0d3b7a190c3abbdce27d4b0b9f16517bf5664099 (diff) | |
download | glibc-26b0d2e1a1606da10c4dc4e109d7b9f2d92aab6a.zip glibc-26b0d2e1a1606da10c4dc4e109d7b9f2d92aab6a.tar.gz glibc-26b0d2e1a1606da10c4dc4e109d7b9f2d92aab6a.tar.bz2 |
Avoid stat/fstat in statvfs/fstatvfs (BZ #15132)
Delay the use of stat/fstat until stat data is required. When the
kernel returns ST_VALID, stat data is not used by __internal_statvfs.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,19 @@ +2014-05-29 Eric Wong <normalperson@yhbt.net> + + [BZ #15132] + * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags): + Call fstat64 or stat64 internally, depending on arguments passed. + Replace stat buffer argument with file descriptor argument. + (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags. + * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): + Pass fd to __internal_statvfs instead of calling fstat64. + * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64): + Pass fd to __internal_statvfs64 instead of calling fstat64. + * sysdeps/unix/sysv/linux/statvfs.c (statvfs): + Pass -1 to __internal_statvfs instead of calling stat64. + * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64): + Pass -1 to __internal_statvfs64 instead of calling stat64. + 2014-05-28 Roland McGrath <roland@hack.frob.com> * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code |