Docsity

CSE 536 Spring 2003 Midterm 1 - File Systems and Access Controls, Exams of Operating Systems

Toggle sidebar
bg1
CSE 536
SPRING 2003
MIDTERM 1
NAME
1. (5) Place the letter corresponding to the name of the data being transferred on the left in the space next to the
arrow for the corresponding data in the layered file system structure figure on the right. (1 poin t each)
(a) disk sector and direction of data transfer
(b) file name, offset and size of transfer
(c) data
(d) physical block number
(e) logical block number and file control block
pointer
2. (13) Modern file systems have added implementation complexity to provide additional functionality than that
available in earlier file systems. An example of this is a log-structured file.
(a) (10) What additional functionality is provided by log-structured files over earlier systems. Be specific – just
saying they are more reliable gets you zero points. What additional operations have to be added to implement
log-structured files?
(b) (3) Why is it feasible to add this functionality in modern file systems?
3. (13) Bit vector method of free disk block allocation.
(a) (5) Explain in general how the bit vector method works.
(a) (4) Why must the bit map be kept on disk as well as in memory?
(c) (4) For large disks the bit map vector method has a significant disadvantage – what is it?
pf3
pf4

Partial preview of the text

Download CSE 536 Spring 2003 Midterm 1 - File Systems and Access Controls and more Exams Operating Systems in PDF only on Docsity!

CSE 536

SPRING 2003

MIDTERM 1

NAME

  1. (5) Place the letter corresponding to the name of the data being transferred on the left in the space next to the arrow for the corresponding data in the layered file system structure figure on the right. (1 point each) (a) disk sector and direction of data transfer (b) file name, offset and size of transfer (c) data (d) physical block number (e) logical block number and file control block pointer
  2. (13) Modern file systems have added implementation complexity to provide additional functionality than that available in earlier file systems. An example of this is a log-structured file. (a) (10) What additional functionality is provided by log-structured files over earlier systems. Be specific – just saying they are more reliable gets you zero points. What additional operations have to be added to implement log-structured files? (b) (3) Why is it feasible to add this functionality in modern file systems?
  3. (13) Bit vector method of free disk block allocation. (a) (5) Explain in general how the bit vector method works. (a) (4) Why must the bit map be kept on disk as well as in memory? (c) (4) For large disks the bit map vector method has a significant disadvantage – what is it?

CSE 536 MIDTERM 1 SPRING 2003

4 (16) Mounting (a) (6) Why is it necessary to mount a file system before it can be available to processes in the system? (b) (10) The mounting operation described in the text (from Sun NFS) is a generalization of early UNIX's mount operation. Explain this. Your explanation should include what happens in an early UNIX mount (just functionally - you need not go into the details of the data structures UNIX uses to support this.) And then you should state what happens in an NFS mount and explain why it is a generalization of a UNIX mount. Your description of these mount operations should include what name(s) replace what name(s) and which contents replace which contents during a pathname search.

  1. (10) Describe what a cylinder group is and give two reasons it was added to the file system in BSD UNIX. Be specific – just saying it made the file system faster and/or more reliable will get you zero points.

CSE 536 MIDTERM 1 SPRING 2003

  1. (25 + 2 points extra credit) ACLs and Capabilities (a) (12) ACL entries and capabilities differ in the information they contain, where they are kept and how they are used. For both ACL entries and capabilities briefly state (a) what information each contains; (b) with what subjects or objects the lists they are stored in are located and (c) how they are used. (b) (4) Are NT’s handles closer to capabilities or ACLs? Give a reason for your answer. (c) (4) Are UNIX’s file-structure table structures closer to capabilities or ACLs? Give a reason for your answer. (d) (5) Actually both UNIX and NT file access methods combine ACL and capability list mechanisms. For either explain why this is true. Giant Hint : Think of what happens on an open and then what happens on a read or write. (e) (2 points e.c.) NT does not check whether a handle in a process’ handle table is still authorized after it has been issued. Why not?