File MGMT
File MGMT
• Direct Access
• A file is made up of fixed-length logical records that allow you to read & write records
rapidly in no particular order
• File operations include a relative block number as parameter, which is an index relative
to the beginning of the file
• The use of relative block numbers
• allows the OS to decide where the file should be placed and
• helps to prevent the user from accessing portions of the file system that may not be part of his file
• When a file is opened, the operating system searches its directory until it
finds the name of the file to be opened.
• It then extracts the attributes and disk addresses, either directly from the
directory entry or from the data structure pointed to, and puts them in a
table in main memory.
• All subsequent references to the file use the information in main memory.