in Operating System
1,675 views
0 votes
0 votes
Each inode in a file system has 5 direct pointers to disk blocks, 3 single indirect pointers to disk blocks, 2 double in- direct pointer to disc block and nothing else. A disc block is 500 bytes. A pointer to disc block is 10 bytes. The entire disc contains 15,000,000 bytes almost. What is the maximum size in bytes of a file in this file system?

A)2552500

B)2575000

C)2575000

D)2577500
in Operating System
1.7k views

4 Comments

D is the answer i am getting
0
0

@saxena0612 Are you using this formula:-

 

0
0
Formula looks good to me but i solve inode question conceptually like finding addresses that a block can hold and accordingly find indirect pointers like we use in c.
0
0

Yes, this formula comes from that concept only.

@saxena0612 

@arch

But from the below link I have found different formula for above question

See this link:- https://gateoverflow.in/112849/file-system

According to above link:-

This formula is for Maximum possible file size, not maximum file size which is asked in the question.

0
0

1 Answer

2 votes
2 votes
(5+3*(500/10) +2*(500/10)*(500/10))*500 = 2577500

option d
by

1 comment

Are dba and pointer to disc block same?
0
0

Related questions