chapter 12 - file management Flashcards
3 desirable properties of files
Long-term existence: kept on secondary storage
Sharable between processes: for shared access
Structure: some file systems manage the internal structure of a file, which can be organized in a way suitable for particular applications
what are the 6 file operations?
create, delete, open, close, read, write
what is the file structure?
field, record, file, database
what is a field? (file structure)
basic element of data, characterized by its length and data type, contains single value
what is a record? (file structure)
collection of related fields
ex. employee record
can be variable length
what is a file? (file structure)
collection of similar records, treated as single entity
what is a database? (file structure)
collection of related file(s)
what are Unix files?
streams of bytes, don’t have internal structure as far as OS is concerned
what is a file management system?
set of system software providing file services to users and applications
7 objectives for a file management system?
Meet the data management needs and requirements of the user
Guarantee that the data in the file are valid.
Optimize performance.
Provide I/O support for a variety of storage device types.
Minimize or eliminate the potential for lost or destroyed data.
Provide a standardized set of I/O interface routines
Provide I/O support for multiple users.
what is involved in a file system architecture?
Device driver: communicates directly with hardware device.
Basic file system: handles physical I/O.
Basic I/O supervisor: responsible for file I/O initiation and termination, device selection, I/O scheduling, buffer allocation.
Logical I/O: Enables users and applications to access records. Provides record-oriented I/O capability.
Access method: access files based on their structure and method of access.
what are the 5 file management functions?
identify and locate a selected file
enforce user access control (shared system)
employ access method on the records
provide blocking for file I/O
manage secondary storage
5 criteria for choosing a file organization?
Rapid Access
Ease of update
Economy of storage
Simple maintenance
Reliability
5 fundamental file organizations?
Pile
Sequential file
Indexed sequential file
Indexed file
Direct or hashed file
what is a pile? (fundamental file org)
data collected in the order it arrives
Purpose is to accumulate a mass of data and save it
Records may have different structures or no structure.
Data access is by exhaustive search
May be useful to store data prior to processing