[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <174783906007.866336.14071698242251268337.b4-ty@mit.edu>
Date: Wed, 21 May 2025 10:51:00 -0400
From: "Theodore Ts'o" <tytso@....edu>
To: linux-ext4@...r.kernel.org, Brian Foster <bfoster@...hat.com>
Cc: "Theodore Ts'o" <tytso@....edu>
Subject: Re: [PATCH] debugfs: byteswap dirsearch dirent buf on big endian systems
On Thu, 23 Jan 2025 08:52:11 -0500, Brian Foster wrote:
> fstests test ext4/048 fails on big endian systems due to broken
> debugfs dirsearch functionality. On an s390x system and 4k block
> size, the dirsearch command seems to hang indefinitely. On the same
> system with a 1k block size, the command fails to locate an existing
> entry and causes the test to fail due to unexpected results.
>
> The cause of the dirsearch failure is lack of byte swapping of the
> on-disk (little endian) dirent buffer before attempting to iterate
> entries in the given block. This leads to garbage record and name
> length values, for example. To resolve this problem, byte swap the
> directory buffer on big endian systems.
>
> [...]
Applied, thanks!
[1/1] debugfs: byteswap dirsearch dirent buf on big endian systems
commit: 4be42019388d76c933e3b2ea80284aaf5b8eaecb
Best regards,
--
Theodore Ts'o <tytso@....edu>
Powered by blists - more mailing lists