Tims patch to fix test 122: the __arch_pack stuff is confusing it - as was the case in the past

with the "attribute packed" stuff for the efi/efd items etc..
It is confusing the parsing which works out the type names.
Merge of master-melb:xfs-cmds:31658a by kenmcd.
This commit is contained in:
Brad Scarlett
2008-07-17 04:11:10 +00:00
parent 5316024f6f
commit f818b1956b
+7 -1
View File
@@ -43,6 +43,12 @@ s/sizeof\( xfs_agf_t \) = 64/sizeof( xfs_agf_t ) = <SIZE>/;
fi
}
_attribute_filter()
{
sed -e 's/__attribute__ *[(][(]packed[)][)]//' \
-e 's/__arch_pack//'
}
cprog=$tmp.get_structs.c
oprog=$tmp.get_structs
progout=$tmp.output
@@ -137,7 +143,7 @@ echo 'int main(int argc, char *argv[]) {' >>$cprog
# Printfs of typedef sizes
#
cat /usr/include/xfs/xfs*.h | indent |\
sed -e 's/__attribute__ *[(][(]packed[)][)]//' |\
_attribute_filter |\
tee $seq.full |\
egrep '} *xfs_.*_t' |\
egrep -v -f $tmp.ignore |\