#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) */
/* Minimum number of bytes supported for a JFS partition */ #define MINJFS (0x1000000) #define MINJFSTEXT "16"
/* * file system block size -> physical block size
*/ #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)) /* size in byte -> last page number */ #define SIZE2PN(size) ( ((s64)((size) - 1)) >> (L2PSIZE) ) /* size in byte -> last file system block number */ #define SIZE2BN(size, l2bsize) ( ((s64)((size) - 1)) >> (l2bsize) )
/* * fixed physical block address (physical block size = 512 byte) * * NOTE: since we can't guarantee a physical block size of 512 bytes the use of * these macros should be removed and the byte offset macros used instead.
*/ #define SUPER1_B 64 /* primary superblock */ #define AIMAP_B (SUPER1_B + 8) /* 1st extent of aggregate inode map */ #define AITBL_B (AIMAP_B + 16) /* * 1st extent of aggregate inode table
*/ #define SUPER2_B (AITBL_B + 32) /* 2ndary superblock pbn */ #define BMAP_B (SUPER2_B + 8) /* block allocation map */
/* * SIZE_OF_SUPER defines the total amount of space reserved on disk for the * superblock. This is not the same as the superblock structure, since all of * this space is not currently being used.
*/ #define SIZE_OF_SUPER PSIZE
/* * SIZE_OF_AG_TABLE defines the amount of space reserved to hold the AG table
*/ #define SIZE_OF_AG_TABLE PSIZE
/* * SIZE_OF_MAP_PAGE defines the amount of disk space reserved for each page of * the inode allocation map (to hold iag)
*/ #define SIZE_OF_MAP_PAGE PSIZE
/* * The following macro is used to indicate the number of reserved disk blocks at * the front of an aggregate, in terms of physical blocks. This value is * currently defined to be 32K. This turns out to be the same as the primary * superblock's address, since it directly follows the reserved blocks.
*/ #define AGGR_RSVD_BLOCKS SUPER1_B
/* * The following macro is used to indicate the number of reserved bytes at the * front of an aggregate. This value is currently defined to be 32K. This * turns out to be the same as the primary superblock's byte offset, since it * directly follows the reserved blocks.
*/ #define AGGR_RSVD_BYTES SUPER1_OFF
/* * The following macro defines the byte offset for the first inode extent in * the aggregate inode table. This allows us to find the self inode to find the * rest of the table. Currently this value is 44K.
*/ #define AGGR_INODE_TABLE_START AITBL_OFF
#define FILESET_OBJECT_I 4 /* the first fileset inode available for a file * or directory or link...
*/ #define FIRST_FILESET_INO 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.)
*/
/* * file system state (superblock state)
*/ #define FM_CLEAN 0x00000000 /* file system is unmounted and clean */ #define FM_MOUNT 0x00000001 /* file system is mounted cleanly */ #define FM_DIRTY 0x00000002 /* file system was not unmounted and clean * when mounted or * commit failure occurred while being mounted: * fsck() must be run to repair
*/ #define FM_LOGREDO 0x00000004 /* log based recovery (logredo()) failed: * fsck() must be run to repair
*/ #define FM_EXTENDFS 0x00000008 /* file system extendfs() in progress */ #define FM_STATE_MAX 0x0000000f /* max value of s_state */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.