What is the biggest size we can have for a file with SFS? (b)Provide data block numbers in sequence that will be read from the disk (only data blocks that contain file data) when read_t (inum, offset, buf1, count) is called in a user program, where inum is the corresponding inode number for the above inode, and buf1 is a pointer that points to a user-defined buffer.

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
Topic Video
Question

(a)What is the biggest size we can have for a file with SFS?

(b)Provide data block numbers in sequence that will be read from the disk (only data blocks that contain file data) when read_t (inum, offset, buf1, count) is called in a user program, where inum is the corresponding inode number for the above inode, and buf1 is a pointer that points to a user-defined buffer.

Suppose that there is a file with SFS and we have read the contents of its inode and related data
blocks into the memory as shown below.
The content of data block in memory
(each cell represent 4-byte memory space)
data block 33
Cell 0
34
Cell 1
35
Cell 2
36
Cell 3
40
1st direct pointer
Cell 4
41
2nd direct pointer
Cell 5
42
indirect pointer
33
Cell 6
50
Cell 7
56
Cell 8
57
Cell 9
61
Cell 10
68
Cell 11
69
Here, each cell represents a 4-byte memory space and the decimal number inside is the unsigned
integer stored correspondingly.
Transcribed Image Text:Suppose that there is a file with SFS and we have read the contents of its inode and related data blocks into the memory as shown below. The content of data block in memory (each cell represent 4-byte memory space) data block 33 Cell 0 34 Cell 1 35 Cell 2 36 Cell 3 40 1st direct pointer Cell 4 41 2nd direct pointer Cell 5 42 indirect pointer 33 Cell 6 50 Cell 7 56 Cell 8 57 Cell 9 61 Cell 10 68 Cell 11 69 Here, each cell represents a 4-byte memory space and the decimal number inside is the unsigned integer stored correspondingly.
read_t (inum, offset, bufl, count)
The data block numbers in
sequence that will be read
from (only list the data
blocks that contain file data)
Example 1
read_t(inum, 133, bufl, 400);
read_t(inum, 133, bufl, 6000);
read t(inum, 7000, buf1, 10000);
Example 2
5 9
(i)
(ii)
read_t(inum, 12000, bufl, 26000);
(iii)
read_t(inum, 10000, buf1, 36000);
(iv)
read_t(inum, 1000, bufl, 31000);
Transcribed Image Text:read_t (inum, offset, bufl, count) The data block numbers in sequence that will be read from (only list the data blocks that contain file data) Example 1 read_t(inum, 133, bufl, 400); read_t(inum, 133, bufl, 6000); read t(inum, 7000, buf1, 10000); Example 2 5 9 (i) (ii) read_t(inum, 12000, bufl, 26000); (iii) read_t(inum, 10000, buf1, 36000); (iv) read_t(inum, 1000, bufl, 31000);
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
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