]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_io: add support for atomic write statx fields
authorCatherine Hoang <catherine.hoang@oracle.com>
Wed, 20 Nov 2024 02:35:44 +0000 (18:35 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Thu, 21 Nov 2024 13:43:58 +0000 (14:43 +0100)
commit409477af604f465169be9b2cbe259fe382f052ae
tree521f3287f9a8727c60b56e0b179727ba1c8456ab
parent09f319213924f4ed144b23368e33a7ff7ef5ddd2
xfs_io: add support for atomic write statx fields

Add support for the new atomic_write_unit_min, atomic_write_unit_max, and
atomic_write_segments_max fields in statx for xfs_io. In order to support builds
against old kernel headers, define our own internal statx structs. If the
system's struct statx does not have the required atomic write fields, override
the struct definitions with the internal definitions in statx.h.

Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
configure.ac
include/builddefs.in
io/stat.c
io/statx.h
m4/package_libcdev.m4