5,438 views
6 votes
6 votes

Q.1) Consider the Unix inode with 12 Direct Disk Block Addresses(DBA), 1 single indirect DBA, 1 Doubly Indirect DBA and 1 triple indirect DBA. The DBA requires 32 bits and the Disk block size is 1KB. Then what is the maximum file size possible?

Vs

Q.2) A file system with 300 GByte disk uses a file descriptor with 8 direct block addresses, 1 indirect block address and 1 doubly indirect block address. The size of each disk block is 128 KBytes and the size of each disk block address is 8 Bytes. What is the maximum possible file size in this file system?

Vs

What is the Total Size of the File System for both cases?

1 Answer

Best answer
3 votes
3 votes

Q1) DBA requires $32$ bits

So, number of address in one block $= \dfrac{2^{10}}{2^2}=2^8$

Maximum possible file size $= \left( 12 + 256 + 256^2 + 256^3 \right) \times 1 \mathrm{ KB} = 16.0627 \mathrm{ GB}$


Q2) Number of address in one block = {217} / {23}=214=16384

Max possible file size = ( 8 + 16384 +163842 ) * 128  KB =  268451848 * 128 KB 

edited by

Related questions

3 votes
3 votes
1 answer
1
Anup patel asked Oct 13, 2017
839 views