FHSS PT 05 File Systems
FHSS PT 05 File Systems
FHSS PT 05 File Systems
Platform Technologies
1
Need for long-term storage
• Computer applications need to store and retrieve information
• There is need for long-term storage, because
• Limited amount of space in main memory or virtual memory
• Information must be retained beyond the life of a process
• Multiple processes may need to access (parts of) same information
a) A file is an unstructured sequence of bytes. The operating system does not know or care what is in
the file. Used in Unix and Windows.
b) A file is a sequence of fixed-length records, generally matching the 80-column punched cards and
132-character line printer. This was a common model on mainframe computers.
c) A file consists of a tree of records, each containing a key field in a fixed position in the record. This is
used on some large mainframe computers for commercial data processing.
b) A bitmap
• A disk with n blocks requires a bitmap
with n bits.
• Free blocks are represented by 1s in
the map, allocated blocks by 0s (or
vice versa).