Last Quiz Flashcards
What is a file
Contiguous logical address space
What are the types of data stored in files
Numeric
Character
Binary
What are some attributes of files?
Name
Identifier
Type
Location
Size
Protection
Time, date and user identification
What are some file operations?
Create
Write
Read
Reposition within file, ie seek
Delete
Truncate
Open
Close
What is needed to manage open files?
Open file table
File pointer
File open count
Disk location of the file
Access rights
What is the Open File Tables?
Tracks open files
What is the File Pointer?
Pointer to last read/write location per process that has the file open
What is the File open count?
Counter of number of times a file is open to allow removal of data from open file table when last processes closes
What is the disk location of the file?
The cache of data access information
What is the Access rights?
Per process access mode information
How is file locking implemented?
Use shared locks and exclusive locks similar to reader writer locks
What is the difference between mandatory file locking and advisory file locking?
In mandatory file locking access is denied depending on locks held and requested and advisory processes can find statuses of locks and decided what to do
What are the two usual access methods?
Sequential access, and direct access
In sequential access how is the file read?
Byte by byte in order
In direct access how is the file read?
The pointer shifts to the position specified by the input
What is the entity containing file system known as?
Volume
What does each volume track in the file systems info?
The device directory or the volume table or contents.
What is a directory structure?
A collection of node containing information about all files