1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __EFS_FS_SB_H__
20 #define __EFS_FS_SB_H__
21 #include <linux/types.h>
22 #include <linux/magic.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define EFS_MAGIC 0x072959
25 #define EFS_NEWMAGIC 0x07295a
26 #define IS_EFS_MAGIC(x) ((x == EFS_MAGIC) || (x == EFS_NEWMAGIC))
27 #define EFS_SUPER 1
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define EFS_ROOTINODE 2
30 struct efs_super {
31   __be32 fs_size;
32   __be32 fs_firstcg;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   __be32 fs_cgfsize;
35   __be16 fs_cgisize;
36   __be16 fs_sectors;
37   __be16 fs_heads;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   __be16 fs_ncg;
40   __be16 fs_dirty;
41   __be32 fs_time;
42   __be32 fs_magic;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44   char fs_fname[6];
45   char fs_fpack[6];
46   __be32 fs_bmsize;
47   __be32 fs_tfree;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   __be32 fs_tinode;
50   __be32 fs_bmblock;
51   __be32 fs_replsb;
52   __be32 fs_lastialloc;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   char fs_spare[20];
55   __be32 fs_checksum;
56 };
57 struct efs_sb_info {
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   __u32 fs_magic;
60   __u32 fs_start;
61   __u32 first_block;
62   __u32 total_blocks;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   __u32 group_size;
65   __u32 data_free;
66   __u32 inode_free;
67   __u16 inode_blocks;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69   __u16 total_groups;
70 };
71 #endif
72