is the software responsible for creating, deleting, modifying, and controlling access to files—as well as for managing the resources used by the files
The File Manager
Responsibilities of the File Manager
How does a computer system allocate a file
The computer system allocates a file by activating the appropriate secondary storage device and loading the file into memory while updating its records of who is using what file
is a group of related bytes that can be identified by the user with a name, type, and size.
field
How does a computer system deallocate a file
Finally, the File Manager deallocates a file by updating the file tables and rewriting the file (if revised) to the secondary storage device. Any processes waiting to access the file are then notified of its availability.
is a group of related fields.
record
is a group of related records that contains information to be used by specific application programs to generate reports.
file
This type of file contains data and is some times called a _________ because it has no connections to other files; unlike databases, it has no dimensionality.
flat file
appears to the File Manager to be a type of file, but ________ are more complex because they’re actually groups of related files that are interconnected at various levels to give users flexibility of access to the data stored
database
contain instructions and data files contain data; but as far as storage is concerned, the File Manager treats them exactly the same way.
Program files
are special files with listings of filenames and their attributes. Data collected to monitor system performance and provide for system accounting is collected into files. In fact, every program and data file accessed by the computer system, as well as every piece of computer software, is treated as a file
Directories
The user communicates with the File Manager, which responds to what specific commands
OPEN
DELETE
RENAME
COPY
CREATE
OPEN NEW
when a user’s program issues a command to read a record from a disk the READ instruction has to be decomposed into the following steps:
Each storage unit, whether it’s removable or not, is considered a
volume
each volume can contain several files
multifile volumes
files that are extremely large and are contained in several volumes
multivolume files
is stored immediately after the volume descriptor and lists the names and characteristics of every file contained in that volume
master file directory (MFD)
master file directory major disadvantages are:
is created when a user opens an account to access the computer system
subdirectory
Information typically included in a file descriptor includes the following:
here for convenience
* File location—identification of the first physical block (or all blocks) where the file is stored
The two components common to many filenames
a relative filename and an extension
are the most common because they’re the easiest to access directly. That’s why they’re ideal for data files.
Fixed-length records
they don’t leave empty storage space and don’t truncate any characters, thus eliminating the two disadvantages of fixed-length records
Variable-length records
On magnetic disks (hard drives), files can be organized in one of several ways:
sequential record organization
direct record organization
indexed sequential record organization