8: file system Flashcards
define file
a set of associated information written secondary storage
two types of view in file
- logical view - how and properties
- physical view -
4 types of file
- text
- source
- object
- executable
3 file access method
- sequential - information is access one record to another
- direct access - information is retrieved when certain key value is identified
- indexed sequential - direct access first then sequential
4 directory structure
- single-level - single directory
- double-level - master file directory
- tree-structured - file themselves
- acyclic-structured - a directory can be owned by multiple user
5 operation on file
- read
- write
- execute
- append
- delete
2 implementation of file protection
- password
- access control
3 file allocation methos
- contiguous
- linked
- indexed
define contiguous allocation
every file reside in set of contiguous address
two disadvantage of contiguous allocation
- locating room for new file
- decide disk space required by new file
define linked allocation
every file is a linked list in a disk box
advantages of linked allocation
- no need to state size of file
- does not have external fragmentation problem
- files are able to resume growing
disadvantages of linked allocation
- breakdown of disk cause loss or damage of pointer
- only support sequential allocation
define indexed allocation
placing all the pointer all together to index block
- every file has its personal index box which is collection of disk sector
why direct access is supported in indexed allocation without external fragmentation
- any available block on the disk can fulfil the demand for additional space