2_Week8 Lecture Note File Systems
2_Week8 Lecture Note File Systems
Operating Systems I
Course Instructor
Dr. U. C. Ogude
Week 8: File Systems: File Naming, File Structure, File type and
Directories
by
http://nptel.ac.in/.
Week 8:
File Systems
Presentation Outline
Concept of File Systems
File Types and Attributes
File Operations
able to:
Understand the concept of file systems
Typically, the only way that a user or application may access files is through the
Ease of update
Economy of storage
Simple maintenance
Reliability
Types of File Organization
There are five basic File organizations.
Pile Organization
Least complicated. Data is collected in the order in which they
arrive.
All records are of the same length, consisting of the same number
of fixed-length fields in a particular order.
Because the length and position of each field are known (file
attributes), only the values of fields need to be stored in the field.
Employs multiple indexes, one for each type of field that may be
the subject of a search.
An exhaustive index contains one entry for every record in the
main file. The index itself is organized as a sequential file for ease
of searching.
Directory
Files
F1 F2 F4
F3
Fn
Type
Address
Current length
Maximum length
Protection information
Operations Performed on
Directory
To understand the requirements for a file structure, it is helpful
the directory:
all files owned by that user, plus some of the attributes of each file
Naming problem
Grouping problem
Two-Level Directory
Separate directory for each user.
Grouping Capability
per-user
rights
method