]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: encode the rtsummary 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)
commit451b174434f5ab3354280b1db3598a0169836f00
treec0fe6047b89ac8352d7f69ba125b960652eea98f
parent8a38666acd246b1899f8837dd54d4f77cbd22458
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>
libxfs/xfs_format.h
libxfs/xfs_rtbitmap.h
repair/rt.c