diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h index ba83534..32c7517 100644 --- a/lib/ext2fs/ext2fs.h +++ b/lib/ext2fs/ext2fs.h @@ -250,10 +250,17 @@ struct struct_ext2_filsys { int cluster_ratio_bits; __u16 default_bitmap_type; __u16 pad; + + /* + * RedHat specific change to prevent ABI change by using 8 + * reserved bytes + */ + const struct ext2fs_nls_table *encoding; + /* * Reserved for future expansion */ - __u32 reserved[5]; + __u32 reserved[5 - (sizeof(long int)/4)]; /* * Reserved for the use of the calling application. @@ -304,8 +311,6 @@ struct struct_ext2_filsys { /* hashmap for SHA of data blocks */ struct ext2fs_hashmap* block_sha_map; - - const struct ext2fs_nls_table *encoding; }; #if EXT2_FLAT_INCLUDES