]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: encode the rtsummary in big endian format
authorDarrick J. Wong <djwong@kernel.org>
Tue, 15 Oct 2024 19:44:12 +0000 (12:44 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:44:50 +0000 (13:44 -0700)
commit77e722a9682c931895a649d1a292d68efbd37b2f
tree08f42d5f909feba6b929cb321c9c9c28891fae35
parentee379b3249afbb9198924ace16df27a82fe451b1
xfs: encode the rtsummary in big endian format

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