Home | History | Annotate | Download | only in linux
      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  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef __EFS_FS_SB_H__
     13 #define __EFS_FS_SB_H__
     14 
     15 #define EFS_SUPER_MAGIC 0x414A53
     16 
     17 #define EFS_MAGIC 0x072959
     18 #define EFS_NEWMAGIC 0x07295a
     19 
     20 #define IS_EFS_MAGIC(x) ((x == EFS_MAGIC) || (x == EFS_NEWMAGIC))
     21 
     22 #define EFS_SUPER 1
     23 #define EFS_ROOTINODE 2
     24 
     25 struct efs_super {
     26  __be32 fs_size;
     27  __be32 fs_firstcg;
     28  __be32 fs_cgfsize;
     29  __be16 fs_cgisize;
     30  __be16 fs_sectors;
     31  __be16 fs_heads;
     32  __be16 fs_ncg;
     33  __be16 fs_dirty;
     34  __be32 fs_time;
     35  __be32 fs_magic;
     36  char fs_fname[6];
     37  char fs_fpack[6];
     38  __be32 fs_bmsize;
     39  __be32 fs_tfree;
     40  __be32 fs_tinode;
     41  __be32 fs_bmblock;
     42  __be32 fs_replsb;
     43  __be32 fs_lastialloc;
     44  char fs_spare[20];
     45  __be32 fs_checksum;
     46 };
     47 
     48 struct efs_sb_info {
     49  __u32 fs_magic;
     50  __u32 fs_start;
     51  __u32 first_block;
     52  __u32 total_blocks;
     53  __u32 group_size;
     54  __u32 data_free;
     55  __u32 inode_free;
     56  __u16 inode_blocks;
     57  __u16 total_groups;
     58 };
     59 
     60 #endif
     61 
     62