In a particular Unix OS, each data block is of...

In a particular Unix OS, each data block is of size 1024 bytes, each node has 10 direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for 128 blocks. Which one of the following is approximately the maximum size of a file in the file system?

A. 512MB
B. 2GB
C. 8GB
D. 16GB
1Comment
SHIVAM KUMAR @shivamkumar12
8 Nov 2019 02:04 pm
data block size = 1024 bytes = 2^10 bytes
block size = 128 blocks = 2^7 bytes
direct data blocks = 10
single indirect block = 1
double indirect block = 1
triple indirect block = 1
maximum size of a file in the file system = [direct data blocks + (1*2^7) + (1*2^7*2^7) + (1*2^7*2^7*2^7]*2^10 = 2^31bytes = 2GB

Pages