]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: redefine what statx -m all does
authorDarrick J. Wong <djwong@kernel.org>
Thu, 24 Apr 2025 21:53:23 +0000 (14:53 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Mon, 28 Apr 2025 10:56:58 +0000 (12:56 +0200)
commit077560c53953d0c5762535778f1b9e0dd050719a
treec7fe0cc166be393ec76f32447807c3ba8a636f54
parent95264b115d86538a9e8947487f22f79d5633bf69
xfs_io: redefine what statx -m all does

As of kernel commit 581701b7efd60b ("uapi: deprecate STATX_ALL"),
STATX_ALL is deprecated and has been withdrawn from the kernel codebase.
The symbol still exists for userspace to avoid compilation breakage, but
we're all suppose to stop using it.

Therefore, redefine statx -m all to set all the bits except for the
reserved bit since it's pretty silly that "all" doesn't actually get you
all the fields.

Update the STATX_ALL definition in io/statx.h so people stop using it.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
io/stat.c
io/statx.h
man/man8/xfs_io.8