]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: don't fail FS_IOC_FSGETXATTR on filesystems that lack support
authorAnthony Iliopoulos <ailiop@suse.com>
Sat, 22 Feb 2025 15:08:32 +0000 (16:08 +0100)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 26 Feb 2025 13:26:51 +0000 (14:26 +0100)
commit6c01ed5d6d3a13af0068e8d05913126437c399e9
tree9fd89179fad04a5a426bac6c4aa1020e3761fbea
parent0b3e7284c7fa20dd27f8a584f8db417d1d6fa27b
xfs_io: don't fail FS_IOC_FSGETXATTR on filesystems that lack support

Not all filesystems implement the FS_IOC_FSGETXATTR ioctl, and in those
cases -ENOTTY will be returned. There is no need to return with an error
when this happens, so just silently return.

Without this fstest generic/169 fails on NFS that doesn't implement the
fileattr_get inode operation.

Fixes: e6b48f451a5d ("xfs_io: allow foreign FSes to show FS_IOC_FSGETXATTR details")
Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
io/stat.c