Question: Consider a file system that uses the index - allocation technique, with block size of 1 KB ( file block size and disk block size
Consider a file system that uses the indexallocation technique, with block size of KB file block size and disk block size are the same The disk partition holding the file system has size KB The file system keeps one inode for each file and one dnode for each directory. Each inode has some file attributes direct blocks single indirect block double indirect block and triple indirect block. Each dnode has some directory attributes and linear list of filessubdirectories under it The maximum filedirectory name size is character. The maximum number of files and sub directories under a single directory is The maximum number of directories in the system can be However, the maximum number of files in the system can be The file system support readwriteexecute permission for each file and directory, and hard links for both file and directories.
a Compare and contrast different file allocation technique.
b What is the maximum size of the file that can be supported?
c Implement how the file system components are organized in the disk partition showing the exact size and order of the components Assume that bit method is used to manage free space for inodes nodes and data blocks.
d List the steps that occur when the call write fd buff, size is made, which write size bytes starting from memory address buff to the end of an already open file with file descriptor fd Assume that the system supports both a peer process and a system widen open file table. The file and directory attributes you choose must support the above operation efficiently. Align all the fields in the data structure define to byte boundaries. You can assume that routine readwrite block from to disk already exit that you can call.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
