Chapter 10: File Systems Flashcards
A file system (FS)
has the function to implement the concept of files.
A record is a
structure of related data items, possibly of different data types, identified within a file by a record number or a unique key field.
An access method is a set of
operations provided by the OS as part of the user interface to access files. The most common access method is sequential.
A Seek is generally not necessary for __________ record files
Fixed-length record files. Any record can be accessed by directly specifying the record number.
Metadata is information about the format and
organization of a file’s data and is generally stored in a file header
A file header is a
portion of the file preceding the actual data and is visible to only the FS itself.
The magic number is a short sequence of
characters at the start of the file header, which identifies the file type. The file type, in turn, determines which programs are allowed to access and interpret the file.
A file extension is a
sequence of one or more characters following the file name.
A file directory (or folder) is a special-purpose file that
records information about other files and possibly other directories. The directory consists of a set of entries, each containing the name of a file followed by other information necessary to access the file.
A tree-structured directory hierarchy is a collection of __________ organized such that (1) __________, and (2) __________
A tree-structured directory hierarchy is a collection of directories organized such that (1) every directory points to zero or more files or directories at the next lower level, and (2) every file and directory except the root is pointed to by exactly one parent directory at the next higher level.
The root of a tree-structured directory hierarchy is
the highest level directory, which does not have a parent directory.
An absolute path name of a file, uniquely identified by an __________, is the __________ leading from __________ to __________
internal ID, f, is the concatenation of the directory and file names leading from the root to the file f.
A relative path name is a
concatenation of file names starting with the current directory.
Change (Directory Operation)
Change the current working directory to another directory specified by a path name.
Create (Directory Operation)
Create a new named directory and a new entry in the current working directory, which points to the new directory.
Delete (Directory Operation)
Delete directory d specified by a path name. Delete also all files and directories reachable using any path name starting from d.