Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define EFS_MAGIC 0x072959 |
| 24 | #define EFS_NEWMAGIC 0x07295a |
| 25 | #define IS_EFS_MAGIC(x) ((x == EFS_MAGIC) || (x == EFS_NEWMAGIC)) |
| 26 | #define EFS_SUPER 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define EFS_ROOTINODE 2 |
| 28 | struct efs_super { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 | __be32 fs_size; |
| 30 | __be32 fs_firstcg; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | __be32 fs_cgfsize; |
| 32 | __be16 fs_cgisize; |
| 33 | __be16 fs_sectors; |
| 34 | __be16 fs_heads; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | __be16 fs_ncg; |
| 36 | __be16 fs_dirty; |
| 37 | __be32 fs_time; |
| 38 | __be32 fs_magic; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | char fs_fname[6]; |
| 40 | char fs_fpack[6]; |
| 41 | __be32 fs_bmsize; |
| 42 | __be32 fs_tfree; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | __be32 fs_tinode; |
| 44 | __be32 fs_bmblock; |
| 45 | __be32 fs_replsb; |
| 46 | __be32 fs_lastialloc; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | char fs_spare[20]; |
| 48 | __be32 fs_checksum; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 49 | }; |
| 50 | struct efs_sb_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | __u32 fs_magic; |
| 52 | __u32 fs_start; |
| 53 | __u32 first_block; |
| 54 | __u32 total_blocks; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | __u32 group_size; |
| 56 | __u32 data_free; |
| 57 | __u32 inode_free; |
| 58 | __u16 inode_blocks; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | __u16 total_groups; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | }; |
| 61 | #endif |