1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef __EFS_FS_SB_H__ 8 #define __EFS_FS_SB_H__ 9 #include <linux/types.h> 10 #include <linux/magic.h> 11 #define EFS_MAGIC 0x072959 12 #define EFS_NEWMAGIC 0x07295a 13 #define IS_EFS_MAGIC(x) ((x == EFS_MAGIC) || (x == EFS_NEWMAGIC)) 14 #define EFS_SUPER 1 15 #define EFS_ROOTINODE 2 16 struct efs_super { 17 __be32 fs_size; 18 __be32 fs_firstcg; 19 __be32 fs_cgfsize; 20 __be16 fs_cgisize; 21 __be16 fs_sectors; 22 __be16 fs_heads; 23 __be16 fs_ncg; 24 __be16 fs_dirty; 25 __be32 fs_time; 26 __be32 fs_magic; 27 char fs_fname[6]; 28 char fs_fpack[6]; 29 __be32 fs_bmsize; 30 __be32 fs_tfree; 31 __be32 fs_tinode; 32 __be32 fs_bmblock; 33 __be32 fs_replsb; 34 __be32 fs_lastialloc; 35 char fs_spare[20]; 36 __be32 fs_checksum; 37 }; 38 struct efs_sb_info { 39 __u32 fs_magic; 40 __u32 fs_start; 41 __u32 first_block; 42 __u32 total_blocks; 43 __u32 group_size; 44 __u32 data_free; 45 __u32 inode_free; 46 __u16 inode_blocks; 47 __u16 total_groups; 48 }; 49 #endif 50