Question: Consider a file system that keeps file metadata in inode like structures. You can assume 1KB disk blocks and 8 byte disk pointers. An inode

Consider a file system that keeps file metadata in inode like structures. You can assume 1KB disk blocks and 8 byte disk pointers. An inode has 10 direct, 1 indirect and 1 double indirect pointers to data blocks of the file.

  1. (5 pts) What is the maximum file size that can be maintained by this file system? Assume that the disk has enough capacity and it is not a constraint on the file size. NOTE: 1KB = 210 bytes

  2. (8 pts) For the above configuration, assume that we have employed original FFS (Fast File System). FFS obeys the following rules:

    1. Direct pointers point to data blocks in the same group.

    2. Indirect and double indirect pointers point to blocks in different

      groups.

    3. FFS first uses direct pointers, then the single indirect pointer and lastly

      the double indirect pointer to place data blocks of the file.

    Then, what is the maximum number of groups that can be used to keep a 800KB file? If a group just keeps metadata of this file, you should count it as well.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!