CSCI 3150 Introduction to Operating Systems. Assignment Two.
CSCI 3150 Introduction to Operating Systems. Assignment Two. 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. Here, each cell represents a 4-byte memory space and the decimal number inside is the unsigned integer stored correspondingly. Answer the following questions: (a) What is the biggest size we can have for a file with SFS? (10 marks) (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. (40 marks)
Written for
- Institution
- CSCI 3150 Introduction to Operating Systems.
- Course
- CSCI 3150 Introduction to Operating Systems.
Document information
- Uploaded on
- April 20, 2023
- Number of pages
- 3
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
csci 3150 introduction to operating systems assignment two