]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: encode the rtbitmap in big endian format
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:22:03 +0000 (14:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 31 Jul 2024 01:46:51 +0000 (18:46 -0700)
commit97c82f59c1bc03f2ad28c298097b8596afd3634b
treee7633fe844daa3d112ddcae52a6a044c77ea2a3b
parent6e9820a159b8e162b3e7c79a4ef1fe89859a7a30
xfs: encode the rtbitmap in big endian format

Currently, the ondisk realtime bitmap file is accessed in units of
32-bit words.  There's no endian translation of the contents of this
file, which means that the Bad Things Happen(tm) if you go from (say)
x86 to powerpc.  Since we have a new feature flag, let's take the
opportunity to enforce an endianness on the file.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_format.h
libxfs/xfs_rtbitmap.h
repair/rt.c