]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fix vfs/utils.c for big-endian systems
authorEric Sandeen <sandeen@redhat.com>
Mon, 27 Jan 2025 21:43:24 +0000 (15:43 -0600)
committerZorro Lang <zlang@kernel.org>
Sun, 2 Feb 2025 13:28:37 +0000 (21:28 +0800)
commit3fa459d162c932db5bf0494ccf8ed58388dbc287
treed93c9e9bfea3dec53983ed9c7c01d7d0f9e3ae20
parenta4163647375c11565ddaa2581b74c86ba8d11397
fix vfs/utils.c for big-endian systems

generic/633 was failing with EINVAL on the fsxgetattr call on s390.
Looks like this is due to a failure to properly endian swap the
arguments to the syscall, so fix that, and the magic_etc compare
in expected_dummy_vfs_caps_uid() as well while we're at it.

Fixes: 0d1af68e ("generic: add fstests for idmapped mounts")
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/vfs/utils.c