|
|
|
|
|
by unethical_ban
2161 days ago
|
|
The disk / inodes need to know where to start looking for a file's contents, like the address in memory for RAM. Or like the mail: We subdivide by city, then ZIP, then street, then address. So the inode says "The data for my file starts at block 72 and is 3 blocks long" (or something like that). The disk then goes there, and reads blocks 72,73,74. Each block is 4KiB large often, so if you have a 10KiB file, you still take up ceiling(file size/block size) blocks. That's why there is a difference between "File size" and "Size on disk" when you look at disk usage summaries. |
|