]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: encode the rtbitmap in big endian format
authorDarrick J. Wong <djwong@kernel.org>
Mon, 25 Nov 2024 21:14:23 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:30 +0000 (18:01 -0800)
commit5d1ceb55d5705de02ec807dd12c685ee107ac7a4
tree42bd1dbed88e63ae89b796a73846903ae542a556
parent06fb4ab27d621c10290acd842c1abcc6c12ec1ed
xfs: encode the rtbitmap in big endian format

Source kernel commit: eba42c2c53c8b8905307b702c93dffef0719a896

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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_format.h
libxfs/xfs_rtbitmap.h