Re: [PATCH 0/6] block atomic writes for XFS

From: Dave Chinner
Date: Tue Feb 13 2024 - 17:51:11 EST


On Tue, Feb 13, 2024 at 08:41:10AM +0000, John Garry wrote:
> On 13/02/2024 07:45, Ritesh Harjani (IBM) wrote:
> > John Garry <john.g.garry@xxxxxxxxxx> writes:
>
> Does xfs_io have a statx function?

Yes, it's right there in the man page:

statx [ -v|-r ][ -m basic | -m all | -m <mask> ][ -FD ]
Selected statistics from stat(2) and the XFS_IOC_GETXATTR system call on the current file.
-v Show timestamps.
-r Dump raw statx structure values.
-m basic
Set the field mask for the statx call to STATX_BASIC_STATS.
-m all
Set the the field mask for the statx call to STATX_ALL (default).
-m <mask>
Specify a numeric field mask for the statx call.
-F Force the attributes to be synced with the server.
-D Don't sync attributes with the server.

-Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx