[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 0/4] stat: better utilization of statx() on the backend
From: |
Jeff Layton |
Subject: |
[PATCH v6 0/4] stat: better utilization of statx() on the backend |
Date: |
Tue, 28 May 2019 08:21:41 -0400 |
v6: fix up optstring handling
v5: style cleanups
fix warnings from make syntax-check
switch --cached= option to use XARGMATCH
fix --cached=default to set force_sync/dont_sync flags to false
v4: switched to single --cached= option instead of separate
--force-sync and --dont-sync options
v3: fix stat-hyphen and usage_vs_getopt test failures
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 sixth posting of this patchset. The only real change from
the 5th set is that I've dropped some deltas that were no longer needed
since we're not adding a short version of the --cached option.
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 performance improvement on some filesystems (particularlynetworked
or clustered ones).
This also adds a new command-line option that allows 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 | 7 +
src/stat.c | 802 ++++++++++++++++++++++++++++++++++++++---------------
2 files changed, 578 insertions(+), 231 deletions(-)
--
2.21.0
- [PATCH v6 0/4] stat: better utilization of statx() on the backend,
Jeff Layton <=