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 Operating System operating-system inode unix file-system + – saurabh rai asked Dec 26, 2016 saurabh rai 871 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Habibkhan commented Dec 26, 2016 reply Follow Share Default assumption is to keep file in a specific layer else we can have any possibility..Hence if maximum file size is asked then we go for highest level of indirection.. As opposed to this , if asked for maximum filesystem size , then we have to consider all levels in which the file can be stored.. This is according to the solution also which is of previous years question.. But factually u r right @saurabh rai.. 0 votes 0 votes saurabh rai commented Dec 26, 2016 reply Follow Share @habib plzz see this question https://gateoverflow.in/2149/gate2012_41 what ll b the ans .... under default assumption 32 or 35 ? 0 votes 0 votes Lucky sunda commented Feb 7, 2017 reply Follow Share 35KB is correct only. 0 votes 0 votes Please log in or register to add a comment.