coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 0/4] stat: better utilization of statx on the backend


From: Jeff Layton
Subject: [PATCH v2 0/4] stat: better utilization of statx on the backend
Date: Sat, 13 Apr 2019 08:50:11 -0400

v2: only do statx->stat conversion once
    fixes for mask creation based on format
    fix birthtime handling
    use already-converted timespecs from struct stat for times

This is the second posting of this patchset, which fixes some bugs and
makes some improvements over the initial set.

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 which 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 | 684 ++++++++++++++++++++++++++++++++++++++---------------
 2 files changed, 507 insertions(+), 185 deletions(-)

-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]