]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: encode the rtsummary 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)
commitaf4bcc58f7ea4f0c3c428888ae684fc01868bd11
tree4e2a10f61fe649b0cc62e51563bf30bef2d61f17
parent5d1ceb55d5705de02ec807dd12c685ee107ac7a4
xfs: encode the rtsummary in big endian format

Source kernel commit: a2c28367396a85f2d9cfb22acfcedcff08dd1c3c

Currently, the ondisk realtime summary file counters are 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.  Encode the summary
information in big endian format, like most of the rest of the
filesystem.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_format.h
libxfs/xfs_rtbitmap.h