1. File System Implementation
-
Example with 64 blocks, block size 4 KB:
One block each for superblock, inode bitmap, data bitmap.
5 blocks for inode table (256 bytes per inode, 16 inodes per block), 56 blocks for file data:
Reading an inode:
address = 12KB + 256 * inumber; block = address / 4KB; offset = address % 4KB