From acd3e44ecf25bf29fca14f75e4fc75ce473817d0 Mon Sep 17 00:00:00 2001 From: Barry Naujok Date: Mon, 5 May 2008 06:25:29 +0000 Subject: [PATCH] Add support for sb_bad_features2 in QA 122 Merge of master-melb:xfs-cmds:31022a by kenmcd. Add support for sb_bad_features2 in superblock structure --- 122 | 15 ++++++++++++++- 122.out | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/122 b/122 index a5d9e8f3..f193ae49 100755 --- a/122 +++ b/122 @@ -45,6 +45,7 @@ s/sizeof\( xfs_agf_t \) = 64/sizeof( xfs_agf_t ) = /; cprog=$tmp.get_structs.c oprog=$tmp.get_structs +progout=$tmp.output cat >$cprog < @@ -160,6 +161,18 @@ echo 'return 0; }' >>$cprog # create and run program cc -o $oprog $cprog -eval $oprog | LC_COLLATE=POSIX sort | _type_size_filter +$oprog | _type_size_filter > $progout + +# +# add addition sizes and xfs_sb_t fields that don't exist in the version +# being tested. +# + +# xfsprogs 2.9.8: sb_bad_features2 in pv 978822 +if [ $XFSPROGS_VERSION -lt 20908 ]; then + echo 'offsetof(xfs_sb_t, sb_bad_features2 ) = 204' >>$progout +fi + +LC_COLLATE=POSIX sort $progout status=0 diff --git a/122.out b/122.out index 5131f8a0..98316024 100644 --- a/122.out +++ b/122.out @@ -2,6 +2,7 @@ QA output created by 122 offsetof(xfs_sb_t, sb_agblklog ) = 124 offsetof(xfs_sb_t, sb_agblocks ) = 84 offsetof(xfs_sb_t, sb_agcount ) = 88 +offsetof(xfs_sb_t, sb_bad_features2 ) = 204 offsetof(xfs_sb_t, sb_blocklog ) = 120 offsetof(xfs_sb_t, sb_blocksize ) = 4 offsetof(xfs_sb_t, sb_dblocks ) = 8 -- 2.39.5