]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/122: update test to pick up rtword/suminfo ondisk unions
authorDarrick J. Wong <djwong@kernel.org>
Tue, 27 Feb 2024 02:02:05 +0000 (18:02 -0800)
committerZorro Lang <zlang@kernel.org>
Tue, 12 Mar 2024 03:33:41 +0000 (11:33 +0800)
Update this test to check that the ondisk unions for rt bitmap word and
rt summary counts are always the correct size.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/122
tests/xfs/122.out

index ba927c77c46a41016a97bdc7dde2df4dc88ebed6..4e5ba1dfee757b479e425a465e0d7a60cdd7dca6 100755 (executable)
@@ -195,7 +195,7 @@ echo 'int main(int argc, char *argv[]) {' >>$cprog
 #
 cat /usr/include/xfs/xfs*.h | indent |\
 _attribute_filter |\
-grep -E '(} *xfs_.*_t|^struct xfs_[a-z0-9_]*$)' |\
+grep -E '(} *xfs_.*_t|^(union|struct) xfs_[a-z0-9_]*$)' |\
 grep -E -v -f $tmp.ignore |\
 sed -e 's/^.*}[[:space:]]*//g' -e 's/;.*$//g' -e 's/_t, /_t\n/g' |\
 sort | uniq |\
index 067a0ec76b7ef1c5202281515defbcf29c066b03..a2b57cfb9b03e0b168cc3b97e9846ea22004ccd5 100644 (file)
@@ -124,6 +124,8 @@ sizeof(struct xfs_swap_extent) = 64
 sizeof(struct xfs_sxd_log_format) = 16
 sizeof(struct xfs_sxi_log_format) = 80
 sizeof(struct xfs_unmount_log_format) = 8
+sizeof(union xfs_rtword_raw) = 4
+sizeof(union xfs_suminfo_raw) = 4
 sizeof(xfs_agf_t) = 224
 sizeof(xfs_agfl_t) = 36
 sizeof(xfs_agi_t) = 344