8: file system Flashcards

1
Q

define file

A

a set of associated information written secondary storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

two types of view in file

A
  • logical view - how and properties
  • physical view -
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

4 types of file

A
  • text
  • source
  • object
  • executable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

3 file access method

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

4 directory structure

A
  • single-level - single directory
  • double-level - master file directory
  • tree-structured - file themselves
  • acyclic-structured - a directory can be owned by multiple user
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

5 operation on file

A
  1. read
  2. write
  3. execute
  4. append
  5. delete
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

2 implementation of file protection

A
  • password
  • access control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

3 file allocation methos

A
  • contiguous
  • linked
  • indexed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

define contiguous allocation

A

every file reside in set of contiguous address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

two disadvantage of contiguous allocation

A
  • locating room for new file
  • decide disk space required by new file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

define linked allocation

A

every file is a linked list in a disk box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

advantages of linked allocation

A
  • no need to state size of file
  • does not have external fragmentation problem
  • files are able to resume growing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

disadvantages of linked allocation

A
  • breakdown of disk cause loss or damage of pointer
  • only support sequential allocation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

define indexed allocation

A

placing all the pointer all together to index block
- every file has its personal index box which is collection of disk sector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

why direct access is supported in indexed allocation without external fragmentation

A
  • any available block on the disk can fulfil the demand for additional space
How well did you know this?
1
Not at all
2
3
4
5
Perfectly