Next | Internals of ext2fs | 28 |
The indirect block structure means that small files can be read quickly
The block numbers are right in the inode
Large files are still possible, however
For symlinks, ext2fs dispenses with the block addresses entirely
It uses the i_block area for the name of the linked-to file
(Unless that name is larger than 60 bytes)
(In which case it allocates blocks to hold the name and stores the block addresses as usual)
This makes the symlinks faster
The kernel only needs to go to the disk once instead of twice
Next | Copyright © 2001 M. J. Dominus |