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.
Move (Directory Operation)
Move a file or directory from one directory to another.
Rename (Directory Operation)
Change the name of a file or directory specified by a path name.
List List the file names and optionally other attributes of all files contained in a directory specified by a path name.
Find (Directory Operation)
Find a file or directory specified by a name.
A directed acyclic directory hierarchy organizes directories such that any directory at a given level may point to zero or more files or other directories at lower levels but also
permits any file or directory to have more than one parent directory.
A reference count is a non-negative integer associated with a file f, which indicates
how many directories are pointing to the file.
A symbolic link (or shortcut) is a directory entry that
points to a file or directory just like a regular entry but is treated differently with respect to deletion. A delete operation only removes the link but not the file itself.
A File control block (FCB) is a
data structure associated with a filename that contains all relevant attributes of the file. FCBs are stored apart from file directories and are pointed to by the corresponding directory entries.
In Unix and other OSs an FCB is called an
i-node.