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  ***   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 __GFS2_ONDISK_DOT_H__
     20 #define __GFS2_ONDISK_DOT_H__
     21 #include <linux/types.h>
     22 #define GFS2_MAGIC 0x01161970
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define GFS2_BASIC_BLOCK 512
     25 #define GFS2_BASIC_BLOCK_SHIFT 9
     26 #define GFS2_MOUNT_LOCK 0
     27 #define GFS2_LIVE_LOCK 1
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define GFS2_FREEZE_LOCK 2
     30 #define GFS2_RENAME_LOCK 3
     31 #define GFS2_CONTROL_LOCK 4
     32 #define GFS2_MOUNTED_LOCK 5
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define GFS2_FORMAT_NONE 0
     35 #define GFS2_FORMAT_SB 100
     36 #define GFS2_FORMAT_RG 200
     37 #define GFS2_FORMAT_RB 300
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define GFS2_FORMAT_DI 400
     40 #define GFS2_FORMAT_IN 500
     41 #define GFS2_FORMAT_LF 600
     42 #define GFS2_FORMAT_JD 700
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define GFS2_FORMAT_LH 800
     45 #define GFS2_FORMAT_LD 900
     46 #define GFS2_FORMAT_LB 1000
     47 #define GFS2_FORMAT_EA 1600
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define GFS2_FORMAT_ED 1700
     50 #define GFS2_FORMAT_QC 1400
     51 #define GFS2_FORMAT_RI 1100
     52 #define GFS2_FORMAT_DE 1200
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define GFS2_FORMAT_QU 1500
     55 #define GFS2_FORMAT_FS 1801
     56 #define GFS2_FORMAT_MULTI 1900
     57 struct gfs2_inum {
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59   __be64 no_formal_ino;
     60   __be64 no_addr;
     61 };
     62 #define GFS2_METATYPE_NONE 0
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define GFS2_METATYPE_SB 1
     65 #define GFS2_METATYPE_RG 2
     66 #define GFS2_METATYPE_RB 3
     67 #define GFS2_METATYPE_DI 4
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define GFS2_METATYPE_IN 5
     70 #define GFS2_METATYPE_LF 6
     71 #define GFS2_METATYPE_JD 7
     72 #define GFS2_METATYPE_LH 8
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define GFS2_METATYPE_LD 9
     75 #define GFS2_METATYPE_LB 12
     76 #define GFS2_METATYPE_EA 10
     77 #define GFS2_METATYPE_ED 11
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #define GFS2_METATYPE_QC 14
     80 struct gfs2_meta_header {
     81   __be32 mh_magic;
     82   __be32 mh_type;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84   __be64 __pad0;
     85   __be32 mh_format;
     86   union {
     87     __be32 mh_jid;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89     __be32 __pad1;
     90   };
     91 };
     92 #define GFS2_SB_ADDR 128
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define GFS2_SB_LOCK 0
     95 #define GFS2_LOCKNAME_LEN 64
     96 struct gfs2_sb {
     97   struct gfs2_meta_header sb_header;
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99   __be32 sb_fs_format;
    100   __be32 sb_multihost_format;
    101   __u32 __pad0;
    102   __be32 sb_bsize;
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104   __be32 sb_bsize_shift;
    105   __u32 __pad1;
    106   struct gfs2_inum sb_master_dir;
    107   struct gfs2_inum __pad2;
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109   struct gfs2_inum sb_root_dir;
    110   char sb_lockproto[GFS2_LOCKNAME_LEN];
    111   char sb_locktable[GFS2_LOCKNAME_LEN];
    112   struct gfs2_inum __pad3;
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114   struct gfs2_inum __pad4;
    115 #define GFS2_HAS_UUID 1
    116   __u8 sb_uuid[16];
    117 };
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 struct gfs2_rindex {
    120   __be64 ri_addr;
    121   __be32 ri_length;
    122   __u32 __pad;
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124   __be64 ri_data0;
    125   __be32 ri_data;
    126   __be32 ri_bitbytes;
    127   __u8 ri_reserved[64];
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129 };
    130 #define GFS2_NBBY 4
    131 #define GFS2_BIT_SIZE 2
    132 #define GFS2_BIT_MASK 0x00000003
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134 #define GFS2_BLKST_FREE 0
    135 #define GFS2_BLKST_USED 1
    136 #define GFS2_BLKST_UNLINKED 2
    137 #define GFS2_BLKST_DINODE 3
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139 #define GFS2_RGF_JOURNAL 0x00000001
    140 #define GFS2_RGF_METAONLY 0x00000002
    141 #define GFS2_RGF_DATAONLY 0x00000004
    142 #define GFS2_RGF_NOALLOC 0x00000008
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144 #define GFS2_RGF_TRIMMED 0x00000010
    145 struct gfs2_rgrp_lvb {
    146   __be32 rl_magic;
    147   __be32 rl_flags;
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149   __be32 rl_free;
    150   __be32 rl_dinodes;
    151   __be64 rl_igeneration;
    152   __be32 rl_unlinked;
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154   __be32 __pad;
    155 };
    156 struct gfs2_rgrp {
    157   struct gfs2_meta_header rg_header;
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159   __be32 rg_flags;
    160   __be32 rg_free;
    161   __be32 rg_dinodes;
    162   __be32 __pad;
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164   __be64 rg_igeneration;
    165   __u8 rg_reserved[80];
    166 };
    167 struct gfs2_quota {
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169   __be64 qu_limit;
    170   __be64 qu_warn;
    171   __be64 qu_value;
    172   __u8 qu_reserved[64];
    173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    174 };
    175 #define GFS2_MAX_META_HEIGHT 10
    176 #define GFS2_DIR_MAX_DEPTH 17
    177 #define DT2IF(dt) (((dt) << 12) & S_IFMT)
    178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    179 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
    180 enum {
    181   gfs2fl_Jdata = 0,
    182   gfs2fl_ExHash = 1,
    183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    184   gfs2fl_Unused = 2,
    185   gfs2fl_EaIndirect = 3,
    186   gfs2fl_Directio = 4,
    187   gfs2fl_Immutable = 5,
    188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    189   gfs2fl_AppendOnly = 6,
    190   gfs2fl_NoAtime = 7,
    191   gfs2fl_Sync = 8,
    192   gfs2fl_System = 9,
    193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    194   gfs2fl_TopLevel = 10,
    195   gfs2fl_TruncInProg = 29,
    196   gfs2fl_InheritDirectio = 30,
    197   gfs2fl_InheritJdata = 31,
    198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    199 };
    200 #define GFS2_DIF_JDATA 0x00000001
    201 #define GFS2_DIF_EXHASH 0x00000002
    202 #define GFS2_DIF_UNUSED 0x00000004
    203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    204 #define GFS2_DIF_EA_INDIRECT 0x00000008
    205 #define GFS2_DIF_DIRECTIO 0x00000010
    206 #define GFS2_DIF_IMMUTABLE 0x00000020
    207 #define GFS2_DIF_APPENDONLY 0x00000040
    208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    209 #define GFS2_DIF_NOATIME 0x00000080
    210 #define GFS2_DIF_SYNC 0x00000100
    211 #define GFS2_DIF_SYSTEM 0x00000200
    212 #define GFS2_DIF_TOPDIR 0x00000400
    213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    214 #define GFS2_DIF_TRUNC_IN_PROG 0x20000000
    215 #define GFS2_DIF_INHERIT_DIRECTIO 0x40000000
    216 #define GFS2_DIF_INHERIT_JDATA 0x80000000
    217 struct gfs2_dinode {
    218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    219   struct gfs2_meta_header di_header;
    220   struct gfs2_inum di_num;
    221   __be32 di_mode;
    222   __be32 di_uid;
    223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    224   __be32 di_gid;
    225   __be32 di_nlink;
    226   __be64 di_size;
    227   __be64 di_blocks;
    228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    229   __be64 di_atime;
    230   __be64 di_mtime;
    231   __be64 di_ctime;
    232   __be32 di_major;
    233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    234   __be32 di_minor;
    235   __be64 di_goal_meta;
    236   __be64 di_goal_data;
    237   __be64 di_generation;
    238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    239   __be32 di_flags;
    240   __be32 di_payload_format;
    241   __u16 __pad1;
    242   __be16 di_height;
    243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    244   __u32 __pad2;
    245   __u16 __pad3;
    246   __be16 di_depth;
    247   __be32 di_entries;
    248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    249   struct gfs2_inum __pad4;
    250   __be64 di_eattr;
    251   __be32 di_atime_nsec;
    252   __be32 di_mtime_nsec;
    253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    254   __be32 di_ctime_nsec;
    255   __u8 di_reserved[44];
    256 };
    257 #define GFS2_FNAMESIZE 255
    258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    259 #define GFS2_DIRENT_SIZE(name_len) ((sizeof(struct gfs2_dirent) + (name_len) + 7) & ~7)
    260 struct gfs2_dirent {
    261   struct gfs2_inum de_inum;
    262   __be32 de_hash;
    263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    264   __be16 de_rec_len;
    265   __be16 de_name_len;
    266   __be16 de_type;
    267   union {
    268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    269     __u8 __pad[14];
    270     struct {
    271       __be16 de_rahead;
    272       __u8 pad2[12];
    273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    274     };
    275   };
    276 };
    277 struct gfs2_leaf {
    278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    279   struct gfs2_meta_header lf_header;
    280   __be16 lf_depth;
    281   __be16 lf_entries;
    282   __be32 lf_dirent_format;
    283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    284   __be64 lf_next;
    285   union {
    286     __u8 lf_reserved[64];
    287     struct {
    288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    289       __be64 lf_inode;
    290       __be32 lf_dist;
    291       __be32 lf_nsec;
    292       __be64 lf_sec;
    293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    294       __u8 lf_reserved2[40];
    295     };
    296   };
    297 };
    298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    299 #define GFS2_EA_MAX_NAME_LEN 255
    300 #define GFS2_EA_MAX_DATA_LEN 65536
    301 #define GFS2_EATYPE_UNUSED 0
    302 #define GFS2_EATYPE_USR 1
    303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    304 #define GFS2_EATYPE_SYS 2
    305 #define GFS2_EATYPE_SECURITY 3
    306 #define GFS2_EATYPE_LAST 3
    307 #define GFS2_EATYPE_VALID(x) ((x) <= GFS2_EATYPE_LAST)
    308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    309 #define GFS2_EAFLAG_LAST 0x01
    310 struct gfs2_ea_header {
    311   __be32 ea_rec_len;
    312   __be32 ea_data_len;
    313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    314   __u8 ea_name_len;
    315   __u8 ea_type;
    316   __u8 ea_flags;
    317   __u8 ea_num_ptrs;
    318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    319   __u32 __pad;
    320 };
    321 #define GFS2_LOG_HEAD_UNMOUNT 0x00000001
    322 struct gfs2_log_header {
    323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    324   struct gfs2_meta_header lh_header;
    325   __be64 lh_sequence;
    326   __be32 lh_flags;
    327   __be32 lh_tail;
    328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    329   __be32 lh_blkno;
    330   __be32 lh_hash;
    331 };
    332 #define GFS2_LOG_DESC_METADATA 300
    333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    334 #define GFS2_LOG_DESC_REVOKE 301
    335 #define GFS2_LOG_DESC_JDATA 302
    336 struct gfs2_log_descriptor {
    337   struct gfs2_meta_header ld_header;
    338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    339   __be32 ld_type;
    340   __be32 ld_length;
    341   __be32 ld_data1;
    342   __be32 ld_data2;
    343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    344   __u8 ld_reserved[32];
    345 };
    346 #define GFS2_INUM_QUANTUM 1048576
    347 struct gfs2_inum_range {
    348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    349   __be64 ir_start;
    350   __be64 ir_length;
    351 };
    352 struct gfs2_statfs_change {
    353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    354   __be64 sc_total;
    355   __be64 sc_free;
    356   __be64 sc_dinodes;
    357 };
    358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    359 #define GFS2_QCF_USER 0x00000001
    360 struct gfs2_quota_change {
    361   __be64 qc_change;
    362   __be32 qc_flags;
    363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    364   __be32 qc_id;
    365 };
    366 struct gfs2_quota_lvb {
    367   __be32 qb_magic;
    368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    369   __u32 __pad;
    370   __be64 qb_limit;
    371   __be64 qb_warn;
    372   __be64 qb_value;
    373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    374 };
    375 #endif
    376