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
This commit is contained in:
Barry Naujok
2008-05-05 06:25:29 +00:00
parent 946e45ce9f
commit acd3e44ecf
2 changed files with 15 additions and 1 deletions
+14 -1
View File
@@ -45,6 +45,7 @@ s/sizeof\( xfs_agf_t \) = 64/sizeof( xfs_agf_t ) = <SIZE>/;
cprog=$tmp.get_structs.c
oprog=$tmp.get_structs
progout=$tmp.output
cat >$cprog <<EOF
#include <stdio.h>
@@ -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
+1
View File
@@ -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