The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointers. The disk block size is 4 kB, and the disk block address is 32-bits long. The maximum possible file size is (rounded off to 1 decimal place) ______ GB.
A |
7.0 |
B |
9.0 |
C |
2.0 |
D |
4.0 |
No. of Disk block pointers = 4kB/32bits = 1k
Max. file size
= (12 × 1k + 1k × 1k) × 4kB
≈ (1024 × 12 + 1024 × 1024) × 4 × 1024 bytes
≈ 4GB
-------------------------------------------------------------
Data:
Direct Block Pointer = 12
Single Indirect Block Pointer = 1
Double Indirect Block Pointer = 1
Disk block address = disk block entries size = 32 bit = 4 bytes
Disk Block size = 4 KB
Thank You