Deleted Added
full compact
ext2fs.h (294504) ext2fs.h (297335)
1/*-
2 * modified for EXT2FS support in Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 *
1/*-
2 * modified for EXT2FS support in Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 *
7 * $FreeBSD: head/sys/fs/ext2fs/ext2fs.h 294504 2016-01-21 14:50:28Z pfg $
7 * $FreeBSD: head/sys/fs/ext2fs/ext2fs.h 297335 2016-03-28 07:44:55Z kevlo $
8 */
9/*-
10 * Copyright (c) 2009 Aditya Sarawgi
11 * All rights reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:

--- 51 unchanged lines hidden (view full) ---

67 uint32_t e2fs_creator; /* creator OS */
68 uint32_t e2fs_rev; /* revision level */
69 uint16_t e2fs_ruid; /* default uid for reserved blocks */
70 uint16_t e2fs_rgid; /* default gid for reserved blocks */
71 /* EXT2_DYNAMIC_REV superblocks */
72 uint32_t e2fs_first_ino; /* first non-reserved inode */
73 uint16_t e2fs_inode_size; /* size of inode structure */
74 uint16_t e2fs_block_group_nr; /* block grp number of this sblk*/
8 */
9/*-
10 * Copyright (c) 2009 Aditya Sarawgi
11 * All rights reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:

--- 51 unchanged lines hidden (view full) ---

67 uint32_t e2fs_creator; /* creator OS */
68 uint32_t e2fs_rev; /* revision level */
69 uint16_t e2fs_ruid; /* default uid for reserved blocks */
70 uint16_t e2fs_rgid; /* default gid for reserved blocks */
71 /* EXT2_DYNAMIC_REV superblocks */
72 uint32_t e2fs_first_ino; /* first non-reserved inode */
73 uint16_t e2fs_inode_size; /* size of inode structure */
74 uint16_t e2fs_block_group_nr; /* block grp number of this sblk*/
75 uint32_t e2fs_features_compat; /* compatible feature set */
75 uint32_t e2fs_features_compat; /* compatible feature set */
76 uint32_t e2fs_features_incompat; /* incompatible feature set */
77 uint32_t e2fs_features_rocompat; /* RO-compatible feature set */
78 uint8_t e2fs_uuid[16]; /* 128-bit uuid for volume */
79 char e2fs_vname[16]; /* volume name */
80 char e2fs_fsmnt[64]; /* name mounted on */
81 uint32_t e2fs_algo; /* For compression */
82 uint8_t e2fs_prealloc; /* # of blocks for old prealloc */
83 uint8_t e2fs_dir_prealloc; /* # of blocks for old prealloc dirs */
84 uint16_t e2fs_reserved_ngdb; /* # of reserved gd blocks for resize */
85 char e3fs_journal_uuid[16]; /* uuid of journal superblock */
86 uint32_t e3fs_journal_inum; /* inode number of journal file */
87 uint32_t e3fs_journal_dev; /* device number of journal file */
88 uint32_t e3fs_last_orphan; /* start of list of inodes to delete */
89 uint32_t e3fs_hash_seed[4]; /* HTREE hash seed */
90 char e3fs_def_hash_version; /* Default hash version to use */
76 uint32_t e2fs_features_incompat; /* incompatible feature set */
77 uint32_t e2fs_features_rocompat; /* RO-compatible feature set */
78 uint8_t e2fs_uuid[16]; /* 128-bit uuid for volume */
79 char e2fs_vname[16]; /* volume name */
80 char e2fs_fsmnt[64]; /* name mounted on */
81 uint32_t e2fs_algo; /* For compression */
82 uint8_t e2fs_prealloc; /* # of blocks for old prealloc */
83 uint8_t e2fs_dir_prealloc; /* # of blocks for old prealloc dirs */
84 uint16_t e2fs_reserved_ngdb; /* # of reserved gd blocks for resize */
85 char e3fs_journal_uuid[16]; /* uuid of journal superblock */
86 uint32_t e3fs_journal_inum; /* inode number of journal file */
87 uint32_t e3fs_journal_dev; /* device number of journal file */
88 uint32_t e3fs_last_orphan; /* start of list of inodes to delete */
89 uint32_t e3fs_hash_seed[4]; /* HTREE hash seed */
90 char e3fs_def_hash_version; /* Default hash version to use */
91 char e3fs_reserved_char_pad;
91 char e3fs_jnl_backup_type;
92 uint16_t e3fs_desc_size; /* size of group descriptor */
92 uint32_t e3fs_default_mount_opts;
93 uint32_t e3fs_first_meta_bg; /* First metablock block group */
93 uint32_t e3fs_default_mount_opts;
94 uint32_t e3fs_first_meta_bg; /* First metablock block group */
94 uint32_t e3fs_mkfs_time; /* when the fs was created */
95 uint32_t e3fs_jnl_blks[17]; /* backup of the journal inode */
96 uint32_t e4fs_bcount_hi; /* block count */
97 uint32_t e4fs_rbcount_hi; /* reserved blocks count */
98 uint32_t e4fs_fbcount_hi; /* free blocks count */
99 uint16_t e4fs_min_extra_isize;/* all inodes have at least some bytes */
95 uint32_t e3fs_mkfs_time; /* when the fs was created */
96 uint32_t e3fs_jnl_blks[17]; /* backup of the journal inode */
97 uint32_t e4fs_bcount_hi; /* high bits of blocks count */
98 uint32_t e4fs_rbcount_hi; /* high bits of reserved blocks count */
99 uint32_t e4fs_fbcount_hi; /* high bits of free blocks count */
100 uint16_t e4fs_min_extra_isize; /* all inodes have at least some bytes */
100 uint16_t e4fs_want_extra_isize; /* inodes must reserve some bytes */
101 uint16_t e4fs_want_extra_isize; /* inodes must reserve some bytes */
101 uint32_t e4fs_flags; /* miscellaneous flags */
102 uint16_t e4fs_raid_stride; /* RAID stride */
103 uint16_t e4fs_mmpintv; /* number of seconds to wait in MMP checking */
104 uint64_t e4fs_mmpblk; /* block for multi-mount protection */
105 uint32_t e4fs_raid_stripe_wid;/* blocks on all data disks (N * stride) */
106 uint8_t e4fs_log_gpf; /* FLEX_BG group size */
107 uint8_t e4fs_char_pad2;
108 uint16_t e4fs_pad;
109 uint32_t reserved2[162]; /* Padding to the end of the block */
102 uint32_t e4fs_flags; /* miscellaneous flags */
103 uint16_t e4fs_raid_stride; /* RAID stride */
104 uint16_t e4fs_mmpintv; /* number of seconds to wait in MMP checking */
105 uint64_t e4fs_mmpblk; /* block for multi-mount protection */
106 uint32_t e4fs_raid_stripe_wid; /* blocks on all data disks (N * stride) */
107 uint8_t e4fs_log_gpf; /* FLEX_BG group size */
108 uint8_t e4fs_chksum_type; /* metadata checksum algorithm used */
109 uint8_t e4fs_encrypt; /* versioning level for encryption */
110 uint8_t e4fs_reserved_pad;
111 uint64_t e4fs_kbytes_written; /* number of lifetime kilobytes */
112 uint32_t e4fs_snapinum; /* inode number of active snapshot */
113 uint32_t e4fs_snapid; /* sequential ID of active snapshot */
114 uint64_t e4fs_snaprbcount; /* reserved blocks for active snapshot */
115 uint32_t e4fs_snaplist; /* inode number for on-disk snapshot */
116 uint32_t e4fs_errcount; /* number of file system errors */
117 uint32_t e4fs_first_errtime; /* first time an error happened */
118 uint32_t e4fs_first_errino; /* inode involved in first error */
119 uint64_t e4fs_first_errblk; /* block involved of first error */
120 uint8_t e4fs_first_errfunc[32]; /* function where error happened */
121 uint32_t e4fs_first_errline; /* line number where error happened */
122 uint32_t e4fs_last_errtime; /* most recent time of an error */
123 uint32_t e4fs_last_errino; /* inode involved in last error */
124 uint32_t e4fs_last_errline; /* line number where error happened */
125 uint64_t e4fs_last_errblk; /* block involved of last error */
126 uint8_t e4fs_last_errfunc[32]; /* function where error happened */
127 uint8_t e4fs_mount_opts[64];
128 uint32_t e4fs_usrquota_inum; /* inode for tracking user quota */
129 uint32_t e4fs_grpquota_inum; /* inode for tracking group quota */
130 uint32_t e4fs_overhead_clusters; /* overhead blocks/clusters */
131 uint32_t e4fs_backup_bgs[2]; /* groups with sparse_super2 SBs */
132 uint8_t e4fs_encrypt_algos[4]; /* encryption algorithms in use */
133 uint8_t e4fs_encrypt_pw_salt[16]; /* salt used for string2key */
134 uint32_t e4fs_lpf_ino; /* location of the lost+found inode */
135 uint32_t e4fs_proj_quota_inum; /* inode for tracking project quota */
136 uint32_t e4fs_chksum_seed; /* checksum seed */
137 uint32_t e4fs_reserved[98]; /* padding to the end of the block */
138 uint32_t e4fs_sbchksum; /* superblock checksum */
110};
111
112/*
113 * The path name on which the file system is mounted is maintained
114 * in fs_fsmnt. MAXMNTLEN defines the amount of space allocated in
115 * the super block for this name.
116 */
117#define MAXMNTLEN 512

--- 185 unchanged lines hidden ---
139};
140
141/*
142 * The path name on which the file system is mounted is maintained
143 * in fs_fsmnt. MAXMNTLEN defines the amount of space allocated in
144 * the super block for this name.
145 */
146#define MAXMNTLEN 512

--- 185 unchanged lines hidden ---