This patchset changes the /bin/stat program to use the statx() system
call when available instead of stat()/lstat()/fstat(). This allows us
to avoid fetching attributes that we don't intend to display. This can
be a major improvement for some filesystems (particularly networked
ones).

This also adds two new command-line options that allow it to control
whether to synchronize with the backend server (again, mostly useful
on network filesystems).

Jeff Layton (4):
  stat: drop statbuf argument from out_epoch_sec()
  stat: use statx instead of stat if it's available
  stat: only set STATX_* mask bits for things we want to print
  stat: support statx DONT_SYNC and FORCE_SYNC flags

 NEWS       |   8 +
 src/stat.c | 794 +++++++++++++++++++++++++++++++++++++----------------
 2 files changed, 561 insertions(+), 241 deletions(-)

-- 
2.20.1


Reply via email to