From f818b1956bb3d25067f8adfa9f03b6ef6c87752b Mon Sep 17 00:00:00 2001 From: Brad Scarlett Date: Thu, 17 Jul 2008 04:11:10 +0000 Subject: [PATCH] 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. --- 122 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/122 b/122 index f193ae49..6cb238d4 100755 --- a/122 +++ b/122 @@ -43,6 +43,12 @@ s/sizeof\( xfs_agf_t \) = 64/sizeof( xfs_agf_t ) = /; 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 |\ -- 2.39.5