edited by
1,213 views
0 votes
0 votes
A unix I node has 10 direct pointers 1 double indirect, 1 triple indirect and 1 quadruple indirect pointers. Disk block size is 1 byte. If the max number of bytes of a file that can be accessed by quadruple pinter is 4 terabytes using the inode then how many bits are required to address disk bock?

a. 8

b. 16

c. 24

d. 32

 

The answer given at most places is 32.
edited by

1 Answer

0 votes
0 votes

Given , DB size is 1 Bytes .

we need to find out number of bits in disk block address requires , let it be x bits = x/8 Bytes .

Given , max number of bytes of a file that can be accessed by quadruple pointer is 4 terabytes .

max number of bytes of a file that can be accessed by quadruple pointer =  ( DBSize / DBA )4  *  DBSize 

= {1/ (x/8 ) }4  * 1

= ( 8/x)4

( 8/x)4 = 4 TB  =  4 * 1000byte

now find x from this equation ..

Related questions

3 votes
3 votes
1 answer
1
Anup patel asked Oct 13, 2017
838 views
0 votes
0 votes
0 answers
3
jatinmittal199510 asked Jan 17, 2017
557 views
What all topics do we need to study from the topic ' File Systems' in Operating System for GATE ?