CS FundamentalsHardGATE CS
A Unix-style inode has 10 direct pointers, 1 single-indirect and 1 double-indirect pointer. Blocks are 1 KB and block pointers 4 bytes. What is the maximum file size?
- A. 65,802 KB
- B. 65,546 KB
- C. 16,650 KB
- D. 66,058 KB
Correct answer: A. 65,802 KB
A 1 KB block holds 256 pointers. Direct blocks give 10 KB, single indirect 256 KB and double indirect 256 × 256 = 65,536 KB: 10 + 256 + 65,536 = 65,802 KB.
More Operating Systems questions
- Same inode (10 direct, 1 single-indirect, 1 double-indirect; 1 KB blocks; 256 pointers per block). The inode is already in memory and…
- A 2 GB partition uses a FAT with 4 KB clusters and 4-byte FAT entries. How large is one copy of the FAT?
- A TLB has 64 entries. What is its reach with 4 KB pages, and with 2 MB huge pages?
- A 32-bit system uses two-level paging with 4 KB pages and 4-byte entries (a 1024-entry outer table, each inner table mapping 4 MB). A…
- A disk spins at 7200 RPM, has 400 sectors of 512 bytes per track and an average seek of 5 ms. About how long does it take on average to…
- Processes typically run 40 ms of CPU before blocking for I/O. Round Robin uses a quantum of 8 ms and each context switch costs 2 ms. What…