The very simple file system (VSFS) uses basic data structures such as a super block, bitmaps,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The very simple file system (VSFS) uses basic data structures such as a super block, bitmaps, inodes, and data blocks to store all relevant file system information. Assume further a multi-level index within each inode, with 12 direct pointers, one indirect pointer, and one double-indirect pointer. (a) You need to read a 4KB (one block) file, given its inode number. Assume no relevant structures are in memory in the file cache. How many disk accesses will the read take? (describe) (b) If this same file is read frequently, how many disk accesses will typically occur? (with caching) (c) Assume you need to append a block of size 4KB to a (small) file that already exists. Assume no relevant structures are in the file cache. How many disk accesses will the append take? (describe) (d) If this small file is appended to frequently, how many disk accesses will typically occur? (with caching) (c) Assume you need to append a block of size 4KB to a (large) file that already exists. Assume no relevant structures are in the file cache. How many disk accesses will the append take? (describe) (t) Assume you create a file in the root directory (e.g., /foo.txt). How many disk writes will take place (in the worst case)? (g) Assume you delete a file in the root directory (e.g., /fco.txt). How many disk writes will take place (in the worst case)? The very simple file system (VSFS) uses basic data structures such as a super block, bitmaps, inodes, and data blocks to store all relevant file system information. Assume further a multi-level index within each inode, with 12 direct pointers, one indirect pointer, and one double-indirect pointer. (a) You need to read a 4KB (one block) file, given its inode number. Assume no relevant structures are in memory in the file cache. How many disk accesses will the read take? (describe) (b) If this same file is read frequently, how many disk accesses will typically occur? (with caching) (c) Assume you need to append a block of size 4KB to a (small) file that already exists. Assume no relevant structures are in the file cache. How many disk accesses will the append take? (describe) (d) If this small file is appended to frequently, how many disk accesses will typically occur? (with caching) (c) Assume you need to append a block of size 4KB to a (large) file that already exists. Assume no relevant structures are in the file cache. How many disk accesses will the append take? (describe) (t) Assume you create a file in the root directory (e.g., /foo.txt). How many disk writes will take place (in the worst case)? (g) Assume you delete a file in the root directory (e.g., /fco.txt). How many disk writes will take place (in the worst case)?
Expert Answer:
Answer rating: 100% (QA)
a To read a 4KB one block file given its inode number in the Very Simple File System VSFS you would typically need the following disk accesses 1 Access the disk to read the inode corresponding to the ... View the full answer
Related Book For
Fundamentals Of Database Systems
ISBN: 9780133970777
7th Edition
Authors: Ramez Elmasri, Shamkant Navathe
Posted Date:
Students also viewed these computer network questions
-
Assume the following excerpts from a company's balance sheet. Property, plant, and equipment Long-term investments Beginning Balance $ 3,580,000 $ 1,500,000 Ending Balance $ 3,900,000 $ 880,000...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The following data is provided for Garcon Company and Pepper Company for the year ended December 31. Finished goods inventory, beginning Work in process inventory, beginning Raw materials inventory,...
-
Do economists have any particular expertise at making normative arguments? In other words, they have expertise at making positive statements (i.e., what will happen) about some economic policy, for...
-
Explain the difference between the nominal and effective rates for compound interest?
-
The figure shows a formed round-wire cantilever spring subjected to a varying force. The hardness tests made on 50 springs gave a minimum hardness of 400 Brinell. It is apparent from the mounting...
-
Find and watch videos of three different MVS applications on YouTube or other video-sharing sites. To help you get started, try a couple of the search phrases are listed below. Simply go to YouTube...
-
Trudy Company incurred the following costs. 1. Sales tax on factory machinery purchased $5,000 2. Painting of and lettering on truck immediately upon purchase 700 3. Installation and testing of...
-
The two sides of the DNA double helix are connected by base pairs (adenine, thymine, cytosine, and guanine). Due to the geometric shape of the molecules, adenine bonds with thymine, and cytosine with...
-
On July 1, 2016, Hargrove Corporation issued a 2-year note with a face value of $4,000,000 and a fixed interest rate of 9%, payable on a semiannual basis. On January 15, 2017, the company entered...
-
You own a hamburger franchise and are planning to shut down operations for the day, but you are left with 13 buns, 19 defrosted beef patties, and 14 opened cheese slices. Rather than throw them out,...
-
What is the role of a corporations auditor? To whom is the auditors duty owed?
-
On what grounds is a business justified in dismissing its employees without notice?
-
In what circumstances should a business owner require a confidentiality agreement?
-
What are a corporations documents of record?
-
Describe some of the main elements in a collective agreement.
-
Use the thevenin's theorm to calculate the resistance and voltage at terminals AB. LOU 10 52 b
-
DEPARTMENT DATA EMPLOYEE DATA EmployeeNumber FirstName Mary Rosalie Richard George Alan 3 4 5 7 8 9 855555ES 12 13 14 15 16 17 Create the database tables in SQL or ACCESS: 18 19 20 PROJECT DATA Ken...
-
What is object-based storage? How is it superior to conventional storage systems?
-
What are the three categories of agent-based Web content analyses?
-
Describe the shadow paging recovery technique. Under what circumstance does it not require a log?
-
Consider the diffraction pattern shown actual size in Figure 34.40. If the pattern was formed by light from a \(623-\mathrm{nm}\) (red) laser passing through a single narrow slit and the screen on...
-
An astronomer wishes to determine the relative heights of the intensity peaks for the bright fringes produced by two wavelengths of radiation emitted by sodium atoms. The wavelengths are \(589.0...
-
A 50 -W incandescent light bulb emits about \(5.0 \mathrm{~W}\) of visible light. (The rest is converted to thermal energy.) If a circular aperture \(5.0 \mathrm{~mm}\) in diameter is placed \(1.0...
Study smarter with the SolutionInn App