Chapter 10 File System Interface Flashcards
What 4 pieces of information are associated with an open file ?
➢File pointer - last r/w pos = file pos pointer
➢File-open count - tracks number of opens
➢Disk location of the file
➢Access right
What is used to track the next read location in a file ?
read pointer
What do open-file tables contain ?
information about all open files
Why are open-file tables used ?
better performance
What are two different ways to access a file ?
Sequential aceess
direct access (relative acc)
What are the main file operations ?
Creating, deleting, writing, reading, repositioning
What must be done first to a file system before it can be accessed by the system ?
mounted
What is another name for file repo and does it require any invovlment of the I/O
“file seek” & No
What file attribute is human readable ?
name
What file attribute is unique and not human readable ?
Identifier
What is used to track the next write location in a file ?
write pointer
What is the difference between direct and sequential access ?
sequential - simple, Information in the file is processed in order,
direct - file made up of fixed-length logical records that allow programs to read and write records rapidly in no particular orde