871 views
1 votes
1 votes

While solving gate previous year questions on unix i-node file system implementation 
many people having doubt like.....
"Depending on the size of the file the file will be stored only in a one particular place may be in the direct disk block address or may be in single indirect or may be in double indirect. "
  if anybody have a reference for this approach then plzz tell.It ma b the case that for long size of disk block it is near about same to actual ans but not always.
but ithink it is not true even this concept is applied on many question @gateoverflow.....like
https://gateoverflow.in/92329/made-easy-os-file-systems?show=92329#q92329
https://gateoverflow.in/92065/made-easy-test-series?show=92065#q92065
https://gateoverflow.in/92187/there-difference-calculation-max-size-file-system-size-file?show=92187#q92187https://gateoverflow.in/82325/made-easy-test-series?show=82325#q82325
    nd many questions like this but that is not our point... now comes 2 different scenario 
-----------------------------------------------------------------------------------------------------------------------------------------------
bellow it is a problem from tanenbaum os book...
"A UNIX file system has 4-KB blocks and 4-byte disk addresses. What is the maximum
file size if i-nodes contain 10 direct entries, and one single, double, and triple indirect
entry each"

now while going through some standard weblinks like http://stackoverflow.com/questions/2742163/maximum-file-size-given-a-particular-inode-structure
and some universities material i find that a file may store i 2 different places like double inderect and triple indirect 
https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&cad=rja&uact=8&ved=0ahUKEwj0t_-elZHRAhXLKo8KHaUxAIIQFgg2MAQ&url=http%3A%2F%2Fwww.coe.utah.edu%2F~cs5460%2Fslides%2FLecture19.pdf&usg=AFQjCNG-kEktxwh3o6lGfkG_tNHgu6YD_A&sig2=XdhP-iqJrEH7GIG3ZAbH8w

https://www.cs.utexas.edu/~lorenzo/corsi/cs372/06F/hw/11sol.html

Please log in or register to answer this question.

Related questions

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