Go to the documentation of this file.
34 #define JFS_UNICODE 0x00000001
37 #define JFS_ERR_REMOUNT_RO 0x00000002
38 #define JFS_ERR_CONTINUE 0x00000004
39 #define JFS_ERR_PANIC 0x00000008
42 #define JFS_USRQUOTA 0x00000010
43 #define JFS_GRPQUOTA 0x00000020
46 #define JFS_NOINTEGRITY 0x00000040
49 #define JFS_DISCARD 0x00000080
52 #define JFS_COMMIT 0x00000f00
53 #define JFS_GROUPCOMMIT 0x00000100
54 #define JFS_LAZYCOMMIT 0x00000200
55 #define JFS_TMPFS 0x00000400
61 #define JFS_INLINELOG 0x00000800
62 #define JFS_INLINEMOVE 0x00001000
65 #define JFS_BAD_SAIT 0x00010000
68 #define JFS_SPARSE 0x00020000
71 #define JFS_DASD_ENABLED 0x00040000
72 #define JFS_DASD_PRIME 0x00080000
75 #define JFS_SWAP_BYTES 0x00100000
78 #define JFS_DIR_INDEX 0x00200000
81 #define JFS_LINUX 0x10000000
82 #define JFS_DFS 0x20000000
85 #define JFS_OS2 0x40000000
88 #define JFS_AIX 0x80000000
115 #define IDATASIZE 256
116 #define IXATTRSIZE 128
118 #define XTPAGE_SIZE 4096
119 #define log2_PAGESIZE 12
121 #define IAG_SIZE 4096
122 #define IAG_EXTENT_SIZE 4096
123 #define INOSPERIAG 4096
124 #define L2INOSPERIAG 12
125 #define INOSPEREXT 32
126 #define L2INOSPEREXT 5
127 #define IXSIZE (DISIZE * INOSPEREXT)
128 #define INOSPERPAGE 8
129 #define L2INOSPERPAGE 3
131 #define IAGFREELIST_LWM 64
133 #define INODE_EXTENT_SIZE IXSIZE
134 #define NUM_INODE_PER_EXTENT INOSPEREXT
135 #define NUM_INODE_PER_IAG INOSPERIAG
137 #define MINBLOCKSIZE 512
138 #define MAXBLOCKSIZE 4096
139 #define MAXFILESIZE ((s64)1 << 52)
141 #define JFS_LINK_MAX 0xffffffff
144 #define MINJFS (0x1000000)
145 #define MINJFSTEXT "16"
150 #define LBOFFSET(x) ((x) & (PBSIZE - 1))
151 #define LBNUMBER(x) ((x) >> L2PBSIZE)
152 #define LBLK2PBLK(sb,b) ((b) << (sb->s_blocksize_bits - L2PBSIZE))
153 #define PBLK2LBLK(sb,b) ((b) >> (sb->s_blocksize_bits - L2PBSIZE))
155 #define SIZE2PN(size) ( ((s64)((size) - 1)) >> (L2PSIZE) )
157 #define SIZE2BN(size, l2bsize) ( ((s64)((size) - 1)) >> (l2bsize) )
166 #define AIMAP_B (SUPER1_B + 8)
167 #define AITBL_B (AIMAP_B + 16)
170 #define SUPER2_B (AITBL_B + 32)
171 #define BMAP_B (SUPER2_B + 8)
178 #define SIZE_OF_SUPER PSIZE
183 #define SIZE_OF_AG_TABLE PSIZE
189 #define SIZE_OF_MAP_PAGE PSIZE
194 #define SUPER1_OFF 0x8000
195 #define AIMAP_OFF (SUPER1_OFF + SIZE_OF_SUPER)
200 #define AITBL_OFF (AIMAP_OFF + (SIZE_OF_MAP_PAGE << 1))
204 #define SUPER2_OFF (AITBL_OFF + INODE_EXTENT_SIZE)
208 #define BMAP_OFF (SUPER2_OFF + SIZE_OF_SUPER)
219 #define AGGR_RSVD_BLOCKS SUPER1_B
227 #define AGGR_RSVD_BYTES SUPER1_OFF
234 #define AGGR_INODE_TABLE_START AITBL_OFF
240 #define AGGR_RESERVED_I 0
241 #define AGGREGATE_I 1
245 #define FILESYSTEM_I 16
250 #define FILESET_RSVD_I 0
251 #define FILESET_EXT_I 1
255 #define FILESET_OBJECT_I 4
258 #define FIRST_FILESET_INO 16
266 #define JFS_NAME_MAX 255
267 #define JFS_PATH_MAX BPSIZE
273 #define FM_CLEAN 0x00000000
274 #define FM_MOUNT 0x00000001
275 #define FM_DIRTY 0x00000002
280 #define FM_LOGREDO 0x00000004
283 #define FM_EXTENDFS 0x00000008