CS FundamentalsHardGATE CS
A Unix-style inode has 10 direct pointers and one single-, one double- and one triple-indirect pointer. Blocks are 1 KB and pointers are 4 bytes. What is the maximum file size (approximately)?
- A. about 64 MB
- B. about 16 GB
- C. about 4 GB
- D. about 1 TB
Correct answer: B. about 16 GB
A block holds 1024/4 = 256 pointers. Max blocks = 10 + 256 + 256² + 256³ = 16,843,018, times 1 KB ≈ 16.06 GB, i.e. about 16 GB (dominated by the 256³ triple-indirect term).
More Operating Systems questions
- A file uses an inode with 12 direct pointers, then single-, double- and triple-indirect pointers; blocks are 4 KB with 4-byte pointers…
- A disk of 64 GB uses 8 KB clusters and FAT32-style entries of 4 bytes per cluster. How big is one copy of the FAT?
- A 2 TB disk with 4 KB blocks tracks free space with a bitmap (one bit per block). How large is the bitmap?
- A file of 100 blocks uses linked allocation (each block holds a pointer to the next). No blocks are cached and the directory entry gives…
- A 200-block file is stored with contiguous allocation and there is no free space after it, but enough before it. The file control block is…
- Four identical 2 TB disks are combined. What usable capacity do RAID 0, RAID 1+0 (striped mirrors) and RAID 5 give, respectively?