fi
}
+# filter out known changes to xfs type names
+_type_name_filter()
+{
+ sed -e 's/xfs_bmbt_rec_64_t/xfs_bmbt_rec_t/'
+}
+
_attribute_filter()
{
sed -e 's/__attribute__ *[(][(]packed[)][)]//' \
EOF
cat >$tmp.ignore <<EOF
+xfs_alloctype_t
xfs_buf_cancel_t
+xfs_bmbt_rec_32_t
xfs_swapext_t
xfs_dirops_t
xfs_efi_log_item_t
xfs_trans_t
xfs_dirent_t
xfs_fsop_getparents_handlereq_t
+xfs_dinode_core_t
EOF
echo 'int main(int argc, char *argv[]) {' >>$cprog
# create and run program
cc -o $oprog $cprog >> $seq.full 2>&1 || \
_notrun "Could not compile test program (see end of $seq.full)"
-$oprog | _type_size_filter > $progout
+$oprog | _type_size_filter | _type_name_filter > $progout
#
# add addition sizes and xfs_sb_t fields that don't exist in the version
sizeof( xfs_agi_t ) = 296
sizeof( xfs_alloc_rec_incore_t ) = 8
sizeof( xfs_alloc_rec_t ) = 8
-sizeof( xfs_alloctype_t ) = 4
sizeof( xfs_attr_inactive_list_t ) = 8
sizeof( xfs_attr_leaf_entry_t ) = 8
sizeof( xfs_attr_leaf_hdr_t ) = 32
sizeof( xfs_attr_shortform_t ) = 8
sizeof( xfs_attrlist_cursor_t ) = 16
sizeof( xfs_bmbt_key_t ) = 8
-sizeof( xfs_bmbt_rec_32_t ) = 16
-sizeof( xfs_bmbt_rec_64_t ) = 16
+sizeof( xfs_bmbt_rec_t ) = 16
sizeof( xfs_bmdr_block_t ) = 4
sizeof( xfs_btnum_t ) = 4
sizeof( xfs_buf_log_format_t ) = 24
sizeof( xfs_da_blkinfo_t ) = 12
sizeof( xfs_da_intnode_t ) = 24
-sizeof( xfs_dinode_core_t ) = 96
sizeof( xfs_dinode_fmt_t ) = 4
sizeof( xfs_dir2_data_free_t ) = 4
sizeof( xfs_dir2_data_hdr_t ) = 16