Please help! Consider the organization of a UNIX file as represented by the inod
ID: 643943 • Letter: P
Question
Please help! Consider the organization of a UNIX file as represented by the inode. Assume that there are 8 direct block pointers, and a singly, doubly, and triply indirect pointer in each mode. Further, assume that the system block size and the disk sector size are both 4K. Moreover, the disk block pointer is 32 bits, with 8 bits to identify the physical disk and 24 bits to identify the physical block within a disk. 1- What is the maximum file size supported by this system? 2- What is the maximum file system partition (that is, the number of addressable bytes) supported by this system? 3 - Assuming that the file mode is already in main memory, how many disk accesses are required to directly access the byte in position 2,634,012?Explanation / Answer
(a)
Indirect pointer in each node (singly, doubly and triply)
Direct block pointers = 8
System block size + Disk sector size = 4 K
Disk block pointer = 32 bits
Physical disk = 8 bits
Physical block = 24 bits
All different types of block pointers are reference for the calculate the file size
Number of pointers for indirect block N
(b)
The maximum file system partition supported by the system.