Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
jfs_filsys.h File Reference

Go to the source code of this file.

Macros

#define JFS_UNICODE   0x00000001 /* unicode name */
 
#define JFS_ERR_REMOUNT_RO   0x00000002 /* remount read-only */
 
#define JFS_ERR_CONTINUE   0x00000004 /* continue */
 
#define JFS_ERR_PANIC   0x00000008 /* panic */
 
#define JFS_USRQUOTA   0x00000010
 
#define JFS_GRPQUOTA   0x00000020
 
#define JFS_NOINTEGRITY   0x00000040
 
#define JFS_DISCARD   0x00000080
 
#define JFS_COMMIT   0x00000f00 /* commit option mask */
 
#define JFS_GROUPCOMMIT   0x00000100 /* group (of 1) commit */
 
#define JFS_LAZYCOMMIT   0x00000200 /* lazy commit */
 
#define JFS_TMPFS
 
#define JFS_INLINELOG   0x00000800 /* inline log within file system */
 
#define JFS_INLINEMOVE   0x00001000 /* inline log being moved */
 
#define JFS_BAD_SAIT   0x00010000 /* current secondary ait is bad */
 
#define JFS_SPARSE   0x00020000 /* sparse regular file */
 
#define JFS_DASD_ENABLED   0x00040000 /* DASD limits enabled */
 
#define JFS_DASD_PRIME   0x00080000 /* Prime DASD usage on boot */
 
#define JFS_SWAP_BYTES   0x00100000 /* running on big endian computer */
 
#define JFS_DIR_INDEX   0x00200000 /* Persistent index for */
 
#define JFS_LINUX   0x10000000 /* Linux support */
 
#define JFS_DFS   0x20000000 /* DCE DFS LFS support */
 
#define JFS_OS2   0x40000000 /* OS/2 support */
 
#define JFS_AIX   0x80000000 /* AIX support */
 
#define PSIZE   4096 /* page size (in byte) */
 
#define L2PSIZE   12 /* log2(PSIZE) */
 
#define POFFSET   4095 /* offset within page */
 
#define BPSIZE   PSIZE
 
#define PBSIZE   512 /* physical block size (in byte) */
 
#define L2PBSIZE   9 /* log2(PBSIZE) */
 
#define DISIZE   512 /* on-disk inode size (in byte) */
 
#define L2DISIZE   9 /* log2(DISIZE) */
 
#define IDATASIZE   256 /* inode inline data size */
 
#define IXATTRSIZE   128 /* inode inline extended attribute size */
 
#define XTPAGE_SIZE   4096
 
#define log2_PAGESIZE   12
 
#define IAG_SIZE   4096
 
#define IAG_EXTENT_SIZE   4096
 
#define INOSPERIAG   4096 /* number of disk inodes per iag */
 
#define L2INOSPERIAG   12 /* l2 number of disk inodes per iag */
 
#define INOSPEREXT   32 /* number of disk inode per extent */
 
#define L2INOSPEREXT   5 /* l2 number of disk inode per extent */
 
#define IXSIZE   (DISIZE * INOSPEREXT) /* inode extent size */
 
#define INOSPERPAGE   8 /* number of disk inodes per 4K page */
 
#define L2INOSPERPAGE   3 /* log2(INOSPERPAGE) */
 
#define IAGFREELIST_LWM   64
 
#define INODE_EXTENT_SIZE   IXSIZE /* inode extent size */
 
#define NUM_INODE_PER_EXTENT   INOSPEREXT
 
#define NUM_INODE_PER_IAG   INOSPERIAG
 
#define MINBLOCKSIZE   512
 
#define MAXBLOCKSIZE   4096
 
#define MAXFILESIZE   ((s64)1 << 52)
 
#define JFS_LINK_MAX   0xffffffff
 
#define MINJFS   (0x1000000)
 
#define MINJFSTEXT   "16"
 
#define LBOFFSET(x)   ((x) & (PBSIZE - 1))
 
#define LBNUMBER(x)   ((x) >> L2PBSIZE)
 
#define LBLK2PBLK(sb, b)   ((b) << (sb->s_blocksize_bits - L2PBSIZE))
 
#define PBLK2LBLK(sb, b)   ((b) >> (sb->s_blocksize_bits - L2PBSIZE))
 
#define SIZE2PN(size)   ( ((s64)((size) - 1)) >> (L2PSIZE) )
 
#define SIZE2BN(size, l2bsize)   ( ((s64)((size) - 1)) >> (l2bsize) )
 
#define SUPER1_B   64 /* primary superblock */
 
#define AIMAP_B   (SUPER1_B + 8) /* 1st extent of aggregate inode map */
 
#define AITBL_B
 
#define SUPER2_B   (AITBL_B + 32) /* 2ndary superblock pbn */
 
#define BMAP_B   (SUPER2_B + 8) /* block allocation map */
 
#define SIZE_OF_SUPER   PSIZE
 
#define SIZE_OF_AG_TABLE   PSIZE
 
#define SIZE_OF_MAP_PAGE   PSIZE
 
#define SUPER1_OFF   0x8000 /* primary superblock */
 
#define AIMAP_OFF   (SUPER1_OFF + SIZE_OF_SUPER)
 
#define AITBL_OFF   (AIMAP_OFF + (SIZE_OF_MAP_PAGE << 1))
 
#define SUPER2_OFF   (AITBL_OFF + INODE_EXTENT_SIZE)
 
#define BMAP_OFF   (SUPER2_OFF + SIZE_OF_SUPER)
 
#define AGGR_RSVD_BLOCKS   SUPER1_B
 
#define AGGR_RSVD_BYTES   SUPER1_OFF
 
#define AGGR_INODE_TABLE_START   AITBL_OFF
 
#define AGGR_RESERVED_I   0 /* aggregate inode (reserved) */
 
#define AGGREGATE_I   1 /* aggregate inode map inode */
 
#define BMAP_I   2 /* aggregate block allocation map inode */
 
#define LOG_I   3 /* aggregate inline log inode */
 
#define BADBLOCK_I   4 /* aggregate bad block inode */
 
#define FILESYSTEM_I
 
#define FILESET_RSVD_I   0 /* fileset inode (reserved) */
 
#define FILESET_EXT_I   1 /* fileset inode extension */
 
#define ROOT_I   2 /* fileset root inode */
 
#define ACL_I   3 /* fileset ACL inode */
 
#define FILESET_OBJECT_I
 
#define FIRST_FILESET_INO
 
#define JFS_NAME_MAX   255
 
#define JFS_PATH_MAX   BPSIZE
 
#define FM_CLEAN   0x00000000 /* file system is unmounted and clean */
 
#define FM_MOUNT   0x00000001 /* file system is mounted cleanly */
 
#define FM_DIRTY
 
#define FM_LOGREDO
 
#define FM_EXTENDFS   0x00000008 /* file system extendfs() in progress */
 

Macro Definition Documentation

#define ACL_I   3 /* fileset ACL inode */

Definition at line 246 of file jfs_filsys.h.

#define AGGR_INODE_TABLE_START   AITBL_OFF

Definition at line 229 of file jfs_filsys.h.

#define AGGR_RESERVED_I   0 /* aggregate inode (reserved) */

Definition at line 235 of file jfs_filsys.h.

#define AGGR_RSVD_BLOCKS   SUPER1_B

Definition at line 214 of file jfs_filsys.h.

#define AGGR_RSVD_BYTES   SUPER1_OFF

Definition at line 222 of file jfs_filsys.h.

#define AGGREGATE_I   1 /* aggregate inode map inode */

Definition at line 236 of file jfs_filsys.h.

#define AIMAP_B   (SUPER1_B + 8) /* 1st extent of aggregate inode map */

Definition at line 163 of file jfs_filsys.h.

#define AIMAP_OFF   (SUPER1_OFF + SIZE_OF_SUPER)

Definition at line 190 of file jfs_filsys.h.

#define AITBL_B
Value:
(AIMAP_B + 16) /*
* 1st extent of aggregate inode table
*/

Definition at line 164 of file jfs_filsys.h.

#define AITBL_OFF   (AIMAP_OFF + (SIZE_OF_MAP_PAGE << 1))

Definition at line 195 of file jfs_filsys.h.

#define BADBLOCK_I   4 /* aggregate bad block inode */

Definition at line 239 of file jfs_filsys.h.

#define BMAP_B   (SUPER2_B + 8) /* block allocation map */

Definition at line 166 of file jfs_filsys.h.

#define BMAP_I   2 /* aggregate block allocation map inode */

Definition at line 237 of file jfs_filsys.h.

#define BMAP_OFF   (SUPER2_OFF + SIZE_OF_SUPER)

Definition at line 203 of file jfs_filsys.h.

#define BPSIZE   PSIZE

Definition at line 99 of file jfs_filsys.h.

#define DISIZE   512 /* on-disk inode size (in byte) */

Definition at line 109 of file jfs_filsys.h.

#define FILESET_EXT_I   1 /* fileset inode extension */

Definition at line 244 of file jfs_filsys.h.

#define FILESET_OBJECT_I
Value:
4 /* the first fileset inode available for a file
* or directory or link...
*/

Definition at line 248 of file jfs_filsys.h.

#define FILESET_RSVD_I   0 /* fileset inode (reserved) */

Definition at line 243 of file jfs_filsys.h.

#define FILESYSTEM_I
Value:
16 /* 1st/only fileset inode in ait:
* fileset inode map inode
*/

Definition at line 240 of file jfs_filsys.h.

#define FIRST_FILESET_INO
Value:
16 /* the first aggregate inode which describes
* an inode. (To fsck this is also the first
* inode in part 2 of the agg inode table.)
*/

Definition at line 249 of file jfs_filsys.h.

#define FM_CLEAN   0x00000000 /* file system is unmounted and clean */

Definition at line 261 of file jfs_filsys.h.

#define FM_DIRTY
Value:
0x00000002 /* file system was not unmounted and clean
* when mounted or
* commit failure occurred while being mounted:
* fsck() must be run to repair
*/

Definition at line 263 of file jfs_filsys.h.

#define FM_EXTENDFS   0x00000008 /* file system extendfs() in progress */

Definition at line 265 of file jfs_filsys.h.

#define FM_LOGREDO
Value:
0x00000004 /* log based recovery (logredo()) failed:
* fsck() must be run to repair
*/

Definition at line 264 of file jfs_filsys.h.

#define FM_MOUNT   0x00000001 /* file system is mounted cleanly */

Definition at line 262 of file jfs_filsys.h.

#define IAG_EXTENT_SIZE   4096

Definition at line 119 of file jfs_filsys.h.

#define IAG_SIZE   4096

Definition at line 118 of file jfs_filsys.h.

#define IAGFREELIST_LWM   64

Definition at line 128 of file jfs_filsys.h.

#define IDATASIZE   256 /* inode inline data size */

Definition at line 112 of file jfs_filsys.h.

#define INODE_EXTENT_SIZE   IXSIZE /* inode extent size */

Definition at line 130 of file jfs_filsys.h.

#define INOSPEREXT   32 /* number of disk inode per extent */

Definition at line 122 of file jfs_filsys.h.

#define INOSPERIAG   4096 /* number of disk inodes per iag */

Definition at line 120 of file jfs_filsys.h.

#define INOSPERPAGE   8 /* number of disk inodes per 4K page */

Definition at line 125 of file jfs_filsys.h.

#define IXATTRSIZE   128 /* inode inline extended attribute size */

Definition at line 113 of file jfs_filsys.h.

#define IXSIZE   (DISIZE * INOSPEREXT) /* inode extent size */

Definition at line 124 of file jfs_filsys.h.

#define JFS_AIX   0x80000000 /* AIX support */

Definition at line 85 of file jfs_filsys.h.

#define JFS_BAD_SAIT   0x00010000 /* current secondary ait is bad */

Definition at line 62 of file jfs_filsys.h.

#define JFS_COMMIT   0x00000f00 /* commit option mask */

Definition at line 52 of file jfs_filsys.h.

#define JFS_DASD_ENABLED   0x00040000 /* DASD limits enabled */

Definition at line 68 of file jfs_filsys.h.

#define JFS_DASD_PRIME   0x00080000 /* Prime DASD usage on boot */

Definition at line 69 of file jfs_filsys.h.

#define JFS_DFS   0x20000000 /* DCE DFS LFS support */

Definition at line 79 of file jfs_filsys.h.

#define JFS_DIR_INDEX   0x00200000 /* Persistent index for */

Definition at line 75 of file jfs_filsys.h.

#define JFS_DISCARD   0x00000080

Definition at line 49 of file jfs_filsys.h.

#define JFS_ERR_CONTINUE   0x00000004 /* continue */

Definition at line 38 of file jfs_filsys.h.

#define JFS_ERR_PANIC   0x00000008 /* panic */

Definition at line 39 of file jfs_filsys.h.

#define JFS_ERR_REMOUNT_RO   0x00000002 /* remount read-only */

Definition at line 37 of file jfs_filsys.h.

#define JFS_GROUPCOMMIT   0x00000100 /* group (of 1) commit */

Definition at line 53 of file jfs_filsys.h.

#define JFS_GRPQUOTA   0x00000020

Definition at line 43 of file jfs_filsys.h.

#define JFS_INLINELOG   0x00000800 /* inline log within file system */

Definition at line 58 of file jfs_filsys.h.

#define JFS_INLINEMOVE   0x00001000 /* inline log being moved */

Definition at line 59 of file jfs_filsys.h.

#define JFS_LAZYCOMMIT   0x00000200 /* lazy commit */

Definition at line 54 of file jfs_filsys.h.

#define JFS_LINK_MAX   0xffffffff

Definition at line 138 of file jfs_filsys.h.

#define JFS_LINUX   0x10000000 /* Linux support */

Definition at line 78 of file jfs_filsys.h.

#define JFS_NAME_MAX   255

Definition at line 254 of file jfs_filsys.h.

#define JFS_NOINTEGRITY   0x00000040

Definition at line 46 of file jfs_filsys.h.

#define JFS_OS2   0x40000000 /* OS/2 support */

Definition at line 82 of file jfs_filsys.h.

#define JFS_PATH_MAX   BPSIZE

Definition at line 255 of file jfs_filsys.h.

#define JFS_SPARSE   0x00020000 /* sparse regular file */

Definition at line 65 of file jfs_filsys.h.

#define JFS_SWAP_BYTES   0x00100000 /* running on big endian computer */

Definition at line 72 of file jfs_filsys.h.

#define JFS_TMPFS
Value:
0x00000400 /* temporary file system -
* do not log/commit:
* Never implemented
*/

Definition at line 55 of file jfs_filsys.h.

#define JFS_UNICODE   0x00000001 /* unicode name */

Definition at line 34 of file jfs_filsys.h.

#define JFS_USRQUOTA   0x00000010

Definition at line 42 of file jfs_filsys.h.

#define L2DISIZE   9 /* log2(DISIZE) */

Definition at line 110 of file jfs_filsys.h.

#define L2INOSPEREXT   5 /* l2 number of disk inode per extent */

Definition at line 123 of file jfs_filsys.h.

#define L2INOSPERIAG   12 /* l2 number of disk inodes per iag */

Definition at line 121 of file jfs_filsys.h.

#define L2INOSPERPAGE   3 /* log2(INOSPERPAGE) */

Definition at line 126 of file jfs_filsys.h.

#define L2PBSIZE   9 /* log2(PBSIZE) */

Definition at line 107 of file jfs_filsys.h.

#define L2PSIZE   12 /* log2(PSIZE) */

Definition at line 95 of file jfs_filsys.h.

#define LBLK2PBLK (   sb,
  b 
)    ((b) << (sb->s_blocksize_bits - L2PBSIZE))

Definition at line 149 of file jfs_filsys.h.

#define LBNUMBER (   x)    ((x) >> L2PBSIZE)

Definition at line 148 of file jfs_filsys.h.

#define LBOFFSET (   x)    ((x) & (PBSIZE - 1))

Definition at line 147 of file jfs_filsys.h.

#define log2_PAGESIZE   12

Definition at line 116 of file jfs_filsys.h.

#define LOG_I   3 /* aggregate inline log inode */

Definition at line 238 of file jfs_filsys.h.

#define MAXBLOCKSIZE   4096

Definition at line 135 of file jfs_filsys.h.

#define MAXFILESIZE   ((s64)1 << 52)

Definition at line 136 of file jfs_filsys.h.

#define MINBLOCKSIZE   512

Definition at line 134 of file jfs_filsys.h.

#define MINJFS   (0x1000000)

Definition at line 141 of file jfs_filsys.h.

#define MINJFSTEXT   "16"

Definition at line 142 of file jfs_filsys.h.

#define NUM_INODE_PER_EXTENT   INOSPEREXT

Definition at line 131 of file jfs_filsys.h.

#define NUM_INODE_PER_IAG   INOSPERIAG

Definition at line 132 of file jfs_filsys.h.

#define PBLK2LBLK (   sb,
  b 
)    ((b) >> (sb->s_blocksize_bits - L2PBSIZE))

Definition at line 150 of file jfs_filsys.h.

#define PBSIZE   512 /* physical block size (in byte) */

Definition at line 106 of file jfs_filsys.h.

#define POFFSET   4095 /* offset within page */

Definition at line 96 of file jfs_filsys.h.

#define PSIZE   4096 /* page size (in byte) */

Definition at line 94 of file jfs_filsys.h.

#define ROOT_I   2 /* fileset root inode */

Definition at line 245 of file jfs_filsys.h.

#define SIZE2BN (   size,
  l2bsize 
)    ( ((s64)((size) - 1)) >> (l2bsize) )

Definition at line 154 of file jfs_filsys.h.

#define SIZE2PN (   size)    ( ((s64)((size) - 1)) >> (L2PSIZE) )

Definition at line 152 of file jfs_filsys.h.

#define SIZE_OF_AG_TABLE   PSIZE

Definition at line 178 of file jfs_filsys.h.

#define SIZE_OF_MAP_PAGE   PSIZE

Definition at line 184 of file jfs_filsys.h.

#define SIZE_OF_SUPER   PSIZE

Definition at line 173 of file jfs_filsys.h.

#define SUPER1_B   64 /* primary superblock */

Definition at line 162 of file jfs_filsys.h.

#define SUPER1_OFF   0x8000 /* primary superblock */

Definition at line 189 of file jfs_filsys.h.

#define SUPER2_B   (AITBL_B + 32) /* 2ndary superblock pbn */

Definition at line 165 of file jfs_filsys.h.

#define SUPER2_OFF   (AITBL_OFF + INODE_EXTENT_SIZE)

Definition at line 199 of file jfs_filsys.h.

#define XTPAGE_SIZE   4096

Definition at line 115 of file jfs_filsys.h.