in Operating System
1,299 views
1 vote
1 vote
How to calculate  MAXIMUM POSSIBLE FILE SIZE and TOTAL POSSIBLE FILE SIZE in unix os.

--------------------------------------------------------------------------------------

My approach is

Maximum possible file size=$[\frac{DB size}{DBA}]^{n}$  .Here 'n' is no of n indirect block addresses.

Total possible file size=$[#direct dba's+DB size/DBA.+[DB size/DBA]^{2}+......]* DB size$
in Operating System
1.3k views

4 Comments

That is what I am saying bro, I have also observed that but if such question will be asked in gate I am going to use summation formula only. This has been discussed before also on gateoverflow and there also everyone said to use summation formula. If options are given then it is possible that singly and direct block address gives values in kb where as triply in Gb in that case we ignore kb values bcoz of options.
0
0
Yes, it should be summation.
0
0
k bro,thanks @rahul and @sushant
0
0

Please log in or register to answer this question.