Consider a disk that has 15 data blocks starting from block 20 through 34. We are given the FAT (file allocation table) entries below. The special value -1 indicates the last block of a file while the special value -2 indicates a free block. (a) Look at the FAT in Figure 1(a). How many files are there? What data blocks belong to these files. (b) The FAT in Figure 1(b) contains one or more errors. Find all errors and suggest how to fix the table (create a valid FAT with minimum number of changes). (c) Fill in the blank FAT in Figure 1(c) so that there will be four files in total having 2, 3, 3, and 4 data blocks. Randomly choose blocks that belong to a file in such a way that no two adjacent blocks will belong to the same file. 20-1 20 28 20 21 20 21-2 21 22 31 22 30 22 23 30 23-2 23 24-1 24 27 24 25-2 25 34 25 26 29 26 25 27 23 27 29 28-2 28 -2 22 26 27 28 29 32 29 22 29 30 24 30 24 30 31 34 31 26 31 32 21 32 25 32 33 -2 33 -2 33 34 -1 34 -1 34 (a) Figure 1: FATS (b) (c)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Consider a disk that has 15 data blocks starting from block 20 through 34. We are given
the FAT (file allocation table) entries below. The special value -1 indicates the last block
of a file while the special value -2 indicates a free block.
(a) Look at the FAT in Figure 1(a). How many files are there? What data blocks
belong to these files.
(b) The FAT in Figure 1(b) contains one or more errors. Find all errors and suggest
how to fix the table (create a valid FAT with minimum number of changes).
(c) Fill in the blank FAT in Figure 1(c) so that there will be four files in total having
2, 3, 3, and 4 data blocks. Randomly choose blocks that belong to a file in such a
way that no two adjacent blocks will belong to the same file.
20-1
20
28
20
21
20
21-2
21
22 31
22 30
22
23 30
23-2
23
24-1
24
27
24
25-2
25
34
25
26
29
26
25
27
23
27 29
28-2
28
-2
22
26
27
28
29 32
29
22
29
30
24
30
24
30
31
34
31
26
31
32 21
32
25
32
33 -2
33 -2
33
34
-1
34 -1
34
(a)
Figure 1: FATS
(b)
(c)
Transcribed Image Text:Consider a disk that has 15 data blocks starting from block 20 through 34. We are given the FAT (file allocation table) entries below. The special value -1 indicates the last block of a file while the special value -2 indicates a free block. (a) Look at the FAT in Figure 1(a). How many files are there? What data blocks belong to these files. (b) The FAT in Figure 1(b) contains one or more errors. Find all errors and suggest how to fix the table (create a valid FAT with minimum number of changes). (c) Fill in the blank FAT in Figure 1(c) so that there will be four files in total having 2, 3, 3, and 4 data blocks. Randomly choose blocks that belong to a file in such a way that no two adjacent blocks will belong to the same file. 20-1 20 28 20 21 20 21-2 21 22 31 22 30 22 23 30 23-2 23 24-1 24 27 24 25-2 25 34 25 26 29 26 25 27 23 27 29 28-2 28 -2 22 26 27 28 29 32 29 22 29 30 24 30 24 30 31 34 31 26 31 32 21 32 25 32 33 -2 33 -2 33 34 -1 34 -1 34 (a) Figure 1: FATS (b) (c)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education