Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 2 Consider the inode of Figure 1 (it is same as the Figure 12.9 of the textbook). Assume that the inode contains 15 pointers.
Problem 2 Consider the inode of Figure 1 (it is same as the Figure 12.9 of the textbook). Assume that the inode contains 15 pointers. 12 pointers are used to point direct blocks. Other three pointers are used to point single indirect, double indirect, and triple indirect blocks. Also, assume that each data block is 4KB in size and the pointer size is 4B. mode owners (2) a) Suppose, you need to allocate a 2GB file, then which allocation method would you choose - direct, single indirect, double indirect, or triple indirect? Why? timestamps (3) size block count data data data b) If you need to allocate a 5GB file, then which allocation method would you choose? Why? direct blocks data data data c) If you need to allocate 2TB of data, then which allocation method would you choose? Why? data single indirect - double indirect triple indirect data data data Figure 1: The UNIX inode Problem 2 Consider the inode of Figure 1 (it is same as the Figure 12.9 of the textbook). Assume that the inode contains 15 pointers. 12 pointers are used to point direct blocks. Other three pointers are used to point single indirect, double indirect, and triple indirect blocks. Also, assume that each data block is 4KB in size and the pointer size is 4B. mode owners (2) a) Suppose, you need to allocate a 2GB file, then which allocation method would you choose - direct, single indirect, double indirect, or triple indirect? Why? timestamps (3) size block count data data data b) If you need to allocate a 5GB file, then which allocation method would you choose? Why? direct blocks data data data c) If you need to allocate 2TB of data, then which allocation method would you choose? Why? data single indirect - double indirect triple indirect data data data Figure 1: The UNIX inode
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started