]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_{db,repair}: use accessor functions for bitmap words
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:30 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:23 +0000 (14:06 -0700)
commit0457cd25c852847b7f9a475157239f33b2885113
tree60a64a38e6818bbfc8e41398140d72bfd29f8006
parent742c5e97adac6603249787b22f956454b2d0d5de
xfs_{db,repair}: use accessor functions for bitmap words

Port xfs_db and xfs_repair to use get and set functions for rtbitmap
words so that we can redefine the ondisk format with a specific
endianness.  Note that this requires the definition of a distinct type
for ondisk rtbitmap words so that the compiler can perform proper
typechecking as we go back and forth.

In the upcoming rtgroups feature, we're going to fix the problem that
rtwords are written in host endian order, which means we'll need the
distinct rtword/rtword_raw types.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
db/check.c
libxfs/libxfs_api_defs.h
repair/globals.c
repair/globals.h
repair/phase6.c
repair/rt.c
repair/rt.h