public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/5] More stat fixes
@ 2021-03-19 18:31 Adhemerval Zanella
  2021-03-19 18:31 ` [PATCH 1/5] linux: Implement fstatat with __fstatat64_time64 Adhemerval Zanella
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Adhemerval Zanella @ 2021-03-19 18:31 UTC (permalink / raw)
  To: libc-alpha

This patchset fixes 2 issues recently found with newer stat tests
(s390-32 missing nanoseconds support on legacy stat calls and
MIPSn64 y2106 limitation), adds the __ASSUME_STATX optimization
on fstatat/fstatat64, and improve the 64 bit timestamp tests on
Linux.

I have checked on i686-linux-gnu and x86_64-linux-gnu
(kernel 5.4 x86_64-64) and on powerpc-linux-gnu and
(kernel 5.10 ppc64).

I also tested the utimensat tests on mips64el on two kernels:
4.1.4 (without statx support) and 5.10 (with statx support).
On 4.1.4 kernel the tst-utime now shows the missing y2106
support:

| $ ./testrun mist/tst-utime
| warning: skipping tests[3] { 100000000, fffffffe }: unsupported timestamp value
| warning: skipping tests[4] { 100000001, 100000002 }: unsupported timestamp value

While on a 5.10 kernel all the tests pass without any warning.

Adhemerval Zanella (5):
  linux: Implement fstatat with __fstatat64_time64
  linux: Disable fstatat64 fallback if __ASSUME_STATX is defined
  linux: Use statx for MIPSn64
  support: Add support_path_support_time64_value
  linux: Add y2106 support on utimensat tests

 support/support.h                             | 11 ++-
 support/support_path_support_time64.c         | 10 +-
 sysdeps/unix/sysv/linux/fstatat.c             | 52 +++--------
 sysdeps/unix/sysv/linux/fstatat64.c           | 82 +++++++++++++----
 sysdeps/unix/sysv/linux/fxstat64.c            |  1 +
 sysdeps/unix/sysv/linux/mips/kernel_stat.h    |  4 +
 sysdeps/unix/sysv/linux/statx_cp.c            | 29 ------
 sysdeps/unix/sysv/linux/tst-futimens.c        | 63 ++-----------
 sysdeps/unix/sysv/linux/tst-utime.c           | 63 ++-----------
 .../unix/sysv/linux/tst-utimensat-skeleton.c  | 92 +++++++++++++++++++
 sysdeps/unix/sysv/linux/tst-utimes.c          | 68 +++-----------
 11 files changed, 212 insertions(+), 263 deletions(-)
 create mode 100644 sysdeps/unix/sysv/linux/tst-utimensat-skeleton.c

-- 
2.25.1


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-04-01 18:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19 18:31 [PATCH 0/5] More stat fixes Adhemerval Zanella
2021-03-19 18:31 ` [PATCH 1/5] linux: Implement fstatat with __fstatat64_time64 Adhemerval Zanella
2021-03-23 16:13   ` Stefan Liebler
2021-03-26  9:24   ` Stefan Liebler
2021-03-26 19:32     ` Adhemerval Zanella
2021-03-19 18:31 ` [PATCH 2/5] linux: Disable fstatat64 fallback if __ASSUME_STATX is defined Adhemerval Zanella
2021-03-26  9:24   ` Stefan Liebler
2021-03-26 19:38     ` Adhemerval Zanella
2021-03-19 18:31 ` [PATCH 3/5] linux: Use statx for MIPSn64 Adhemerval Zanella
2021-03-29 12:48   ` Adhemerval Zanella
2021-04-01  0:07   ` Maciej W. Rozycki
2021-04-01 12:45     ` Adhemerval Zanella
2021-04-01 18:00       ` Maciej W. Rozycki
2021-03-19 18:31 ` [PATCH 4/5] support: Add support_path_support_time64_value Adhemerval Zanella
2021-03-26  9:24   ` Stefan Liebler
2021-03-19 18:31 ` [PATCH 5/5] linux: Add y2106 support on utimensat tests Adhemerval Zanella
2021-03-26  9:24   ` Stefan Liebler
2021-03-26 19:40     ` Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).