Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Interested in (c) Most file systems support pretty large files. In this question, we'll see how big a file various file systems support. Assume for
Interested in (c)
Most file systems support pretty large files. In this question, we'll see how big a file various file systems support. Assume for all questions below that file system blocks are 4KB. a) (2.5) Assume you have a really simple file system, directfs, where each inode only has 16 direct pointers, each of which can point to a single file block. Direct pointers are 32 bits in size. What is the maximum file size for directfs? b) (2.5) A new file system uses direct pointers but also adds indirect pointers and double- indirect pointers; we call it indirectfs. Specifically, an inode within indirectfs has one direct pointer, one indirect pointer, and one double-indirect pointer field. Pointers, as before, are 4 bytes in size. Wat is the maximum file size for indirectfs? c) (2.5) A compact file system, called compactfs, tries to save as much space as possible within the inode. Thus, to point to files, it stores only a single pointer to the first block of the file. However, blocks within compactfs store 4KB of user data and a next field, much like a linked list. What is the maximum file size for compactfsStep 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