diff options
Diffstat (limited to 'libc/kernel/common/linux/efs_fs_sb.h')
-rw-r--r-- | libc/kernel/common/linux/efs_fs_sb.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/efs_fs_sb.h b/libc/kernel/common/linux/efs_fs_sb.h new file mode 100644 index 0000000..f7960c0 --- /dev/null +++ b/libc/kernel/common/linux/efs_fs_sb.h @@ -0,0 +1,61 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef __EFS_FS_SB_H__ +#define __EFS_FS_SB_H__ + +#define EFS_SUPER_MAGIC 0x414A53 + +#define EFS_MAGIC 0x072959 +#define EFS_NEWMAGIC 0x07295a + +#define IS_EFS_MAGIC(x) ((x == EFS_MAGIC) || (x == EFS_NEWMAGIC)) + +#define EFS_SUPER 1 +#define EFS_ROOTINODE 2 + +struct efs_super { + __be32 fs_size; + __be32 fs_firstcg; + __be32 fs_cgfsize; + __be16 fs_cgisize; + __be16 fs_sectors; + __be16 fs_heads; + __be16 fs_ncg; + __be16 fs_dirty; + __be32 fs_time; + __be32 fs_magic; + char fs_fname[6]; + char fs_fpack[6]; + __be32 fs_bmsize; + __be32 fs_tfree; + __be32 fs_tinode; + __be32 fs_bmblock; + __be32 fs_replsb; + __be32 fs_lastialloc; + char fs_spare[20]; + __be32 fs_checksum; +}; + +struct efs_sb_info { + __u32 fs_magic; + __u32 fs_start; + __u32 first_block; + __u32 total_blocks; + __u32 group_size; + __u32 data_free; + __u32 inode_free; + __u16 inode_blocks; + __u16 total_groups; +}; + +#endif + |