File Blocks And File Extents
Originally written by
- The data of files is stored in disk blocks...
- whose identities are stored in the file's inode...
- ...either directly, or indirectly (via indirect inode blocks)
- On some file-systems (e.g. ext2, ext3) blocks are allocated only when
there is a need to write into them.
- Good disk space utilization for small files and sparse files.
- Can cause file fragmentation - making large sequential data
read/write operations require many disk seeks.
- May cause a need to use more indirect inode blocks - making random
file access work much worse.