The term ``inode'' stands for information node. A list of inodes is called an ``i-list'' and the position of an inode in an i-list is called an ``i-number''.
An inode contains all the information about a file except its name, which is kept in a directory. Inodes are 64 bytes long: on a disk with 512-byte physical blocks there are 8 of them in a physical block. The length of an i-list is not fixed; it depends on the number of inodes specified when the filesystem is created.
An s5 inode contains the following:
The array of 13 disk block addresses is the heart of the inode.
The address chain in an s5 filesystem
The following table shows
the number of bytes addressable by
the different levels of indirection in
the inode address array for s5 filesystems.
These numbers are calculated
using the logical block size of the filesystem
and the number of bytes (4) used to hold an address.
|Maximum number of bytes addressable by|
Logical Block Size
|Single Indirect Blocks||Double Indirect Blocks||Triple Indirect Blocks|
The table shows the number of bytes addressable using the level of indirection in the column header plus all lower levels of addressing. For example, the table values for single indirect blocks also include bytes addressable by direct blocks; and the table values for triple indirect blocks include bytes addressable by direct blocks and single and double indirect blocks.
The theoretical maximum size of an s5 system file is the same as the size of a file addressable with triple indirection (shown in the last column of the table). In practice, however, file size is limited by the size field in the inode. This is a 32-bit field, so file sizes are limited to 2GB.