Ext2: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Line 279:
 
where % denotes the [http://en.wikipedia.org/wiki/Modulo_operation Modulo operation] and INODES_PER_GROUP is a field in the Superblock (the same field which was used to determine which block group the inode belongs to).
 
Next, we have to determine which block contains our inode. This is achieved from:
 
containing block = (index * INODE_SIZE) / BLOCK_SIZE
 
where INODE_SIZE is either fixed at 128 if VERSION < 1 or defined by a field in the Superblock if VERSION >= 1.0, and BLOCK_SIZE is defined by a field in the Superblock.
 
=== Inode Data Structure ===