作業系統›Ch10 檔案管理
第 14 題/共 28 題
◀ OS 14/28
14. File System、Inode Table、i-block
#OS-10-014易File SystemInode Tablei-block
題組題幹(本題:第27題,共 3 小題)點擊展開

Consider a file system called TFS that is divided into a series of blocks, the size of each block is 4 KB. The blocks are indexed from 0 to 31, assuming we have a tiny disk, with just 32 blocks. Let's refer to the region of the disk used for user data as the data region, which consists of the last 24 of the 32 blocks on the disk. Additionally, we allocate 5 of our 32 blocks for inode table denoted by I's in the diagram. An inode table is partitioned into multiple i-blocks indexed by i-block (IB) 0 to IB 4. An i-block stores multiple inodes and the size of each inode is 256 bytes. Finally, the inode bitmap (i), the data bitmap (d), and the superblock (S) respectively use one 4KB block.

The start address of the inode table on the TFS file system is 12 KB. This TFS file system uses five IBs to store the entire inode table. An IB stores multiple inodes, and the inode index starts from 0 in IB0 and is incrementally increased. The last inode is preserved in the IB4 with the index 79. Which IB preserves the inode where its index is 16?

題目附圖
📄 交大115
跳轉到第題
▤完整推導請見《WH 資工筆記 · 作業系統》Ch10 檔案管理
本章題號 · 1–20 / 28