Answer: 4.0 : 4.1
To find the maximum possible file size, we first calculate the number of disk block addresses that can be stored in a single disk block.
- Disk Block Size (DB): 4 kB=212 bytes
- Disk Block Address Size: 32 bits=4 bytes
- Addresses per block (N): 4 bytes4 kB=1024=210
The inode structure contains:
- 12 direct pointers
- 1 single-indirect pointer (points to a block containing N direct pointers)
- 1 double-indirect pointer (points to a block containing N single-indirect pointers, which in turn point to N2 direct pointers)
The total number of blocks (B) accessible is:
B=12+N+N2=12+1024+10242=1,049,612 blocks
The maximum possible file size (S) is:
S=B×DB=(12+1024+1048576)×4 kB
S=48 kB+4 MB+4 GB
Converting the total size to gigabytes (1 GB=230 bytes):
S=4+10244+1024×102448 GB≈4.004 GB
Rounding off to 1 decimal place, the maximum possible file size is 4.0 GB.