]> 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>
Tue, 16 Jul 2024 22:49:15 +0000 (15:49 -0700)
commite63a17d8f31d34fef16b4fc253e31c6223c85a1e
treeecca6d32aca801af29e28b4dba7c660108314f74
parent98e7218c446c11317b467d957638bb9520a9f312
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