Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose a file is on a filesystem using a 1K block size. This file is maintained on the disk using i-nodes as is typical on

Suppose a file is on a filesystem using a 1K block size. This file is maintained on the disk using i-nodes as is typical on many UNIX filesystems. Suppose there are seven direct (32-bit) pointers, and then a pointer to one singly direct block, a pointer to a doubly indirect block, and a pointer to a triply indirect block. Suppose a program creates and opens a file in this filesystem, and then seeks to the following positions, writes a character, and then exits. Identify how many disk blocks, (both data and indirect blocks) must be allocated to store the data for the file. (Note that a-c each represent a different file.) (Note: we are going to consider the filesystem implementation to support sparse files blocks that are never written to in the file will not be allocated but will be represented by a NULL pointer in the direct and indirect blocks. Answer the following considering sparse file allocation.)

a. Seek to 8900

b. Seek to 350000

c. Seek to 63,000,000

How big would a file need to be to require the triply indirect pointer?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago