Computer Science 354
Operating Systems
Dickinson College
Spring Semester 2006
John MacCormick
File Systems
Reading Assignment
- Operating Systems Concepts: Chapters 10 & 11.
Lecture Slides
Homework Assignment
Due Date: 4/07/08
- Operating Systems Concepts: #11.1, #11.2, #11.6.
- Compare the benefits and drawbacks of building support for user accessible structured files into an OS.
- How would you set the permissions of a file in Unix to create a drop box for other members of the same group? A drop box is a directory into which specified users can place files, but the contents of the directory can only be seen by the user.
- When discussing the File System Data Structures we placed links to the buffered disk blocks in the File Structure. An alternative would have been to place the buffered disk blocks in the Open File Structure. Compare the benefits and drawbacks of these two alternatives.
- In the File System Data Structures that we studied, the Open File ID Table was a single array that held references to all of the Open File Structures. Compare this approach to one in which each File Structure stores a direct link to the associated Open File Structure instead of storing an index into the Open File ID Table. In particular, be sure to discuss why using an Open File ID Table might be preferable.
- Consider a file system that uses a 2 level indexed allocation scheme for keeping track of the disk blocks. Each file descriptor will have 16 direct blocks and 2 indirect blocks. Assume the disk is 32MB and the block size is 1kb. What is the maximum file size (in kb) that this system supports? Show your work.
Acknowledgment: this content is essentially identical to that
developed by Professor Grant Braught for the Spring 2006 Operating
Systems course, and I'm grateful for his permission to use it.