Академический Документы
Профессиональный Документы
Культура Документы
Access methods
Directory structure
106116058
106116056
106116034
FILE SYSTEM INTERFACE
A common technique for implementing file types is to include the type as part
of the file name. The name is split into two parts—a name and an extension,
usually separated by a period.
In this way, the user and the operating system can tell from the name alone
what the type of a file is.
Examples include resume.docx, server.c, and
ReaderThread.cpp.
Common File Types
Access Methods
Sequential Access
read next
write next
reset
no read after last write
(rewrite)
Direct Access – file is fixed length logical records
read n
write n
position to n
read next
write next
rewrite n
n = relative block number
Relative block numbers allow OS to decide where file should be placed
Simulation of Sequential Access on
Direct-access File
Other Access Methods
Can be built on top of base methods
VMS operating system provides index and relative files as another example
(see next slide)
Example of Index and Relative
Files
Disk Structure
Can be divided into parts known as partitions.
Entity containing file system is known as volume.
Directory Operations :
Create
Delete
Rename
Traverse
Search
List
Single Level Directory Structure
Easy to implement
Unique file names
No privacy and protection in case of multi users
Two level Directory Structure
Separate directory for each user
Master File Directory indexed by user names
Can be viewed as a tree whose height is two
User is confined to his directory only
Tree Structured Directory
Extended version of previous one with arbitrary height
Allows creation of sub-directories
Deletion : two protocols