Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is stored in a directory entry and what is stored in a file entry? [2 marks] (b) Consider a file system that uses a

What is stored in a directory entry and what is stored in a file entry? [2 marks]

(b) Consider a file system that uses a fixed size 128 byte directory entry structure, a fixed size 32 byte file entry structure, and manages storage via the “chaining in a map” technique, on a disk that uses 4 kByte blocks. Assume that the map of blocks is permanently in memory and need not be read from disk. Assume further that the file system contains 220 files.

(i) Assume this file system is structured as a file system with a single level directory. Explain how many blocks must be read in order to open and read a 16 byte file named /a/b/c/d/e. [3 marks]

(ii) Instead, assume this file system is structured as a simple hierarchical file system with directories that can contain up to 256 sub-directories and 1024 files. Give upper and lower bounds on how many blocks must be read in order to open and read a 16 byte file named /a/b/c/d/e where / denotes the path separator. State any assumptions you make in computing your bounds. [10 marks]

(c) Unix uses a more complex file entry structure than assumed above, known as an i-node. In addition to file metadata, the i-node stores 12 direct blocks, plus single, double and triple indirect blocks (each of which has 512 entries). Explain what purpose is served by each of these four types of block. [3 marks]

(d) Using Unix i-nodes as above, compute the maximum size file that can be stored. Assume a block is 4 kBytes in size. [2 marks]

Step by Step Solution

3.47 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

The detailed answer for the above question is provided below a A directory entry stores information about a file or subdirectory within a directory su... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intermediate Microeconomics

Authors: Hal R. Varian

9th edition

978-0393123975, 393123979, 393123960, 978-0393919677, 393919676, 978-0393123968

More Books

Students also viewed these Operating System questions

Question

Produce a nine-step process for conducting a literature review.

Answered: 1 week ago

Question

4. (5 points) Integrate (for x>5): dx 3 (x2 - 25)2

Answered: 1 week ago