Filesystems Flashcards

1
Q

Open-File Table

A

Purpose: avoid multiple searches of file directory structure

Contents: contains directory entries of the opened files

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

Per-process open-file table

A

Contains entry per opened file

Every entry has a current-file pointer, as well as a pointer to the system-wide table

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

System-wide open-file table

A

contains file info which is identical for all process

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

3 implementations of Directory Structures

A
  • Linear list
  • Binary tree
  • hash function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Access Methods

A
  • sequential access: read from first to last
  • direct or relative access: give number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Allocation method: Continuous Allocation

A

Each file has number of consecutive blocks.
+ fast sequential and direct access
- Problem: Dynamically increasing file size

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

Allocation method: Linked/Chained Allocation

A

Each file forms a linked list of random blocks
+ fast sequential access
- slow direct access

Disadvantage:
- Possibly slow access
- lose number of bytes per block for pointer
=> resolve by forming clusters

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

FAT: File Allocation Table

A

Variant of linked allocation
Fat contains entry per disk block

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

Indexed Allocation

A

Each file has number of random blocks + index block
-> very fast direct access

Index is at least 1 block
-> large files = multiple blocks

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

Free-space Management

A
  • Bit vector: bit per block, 1 = free
    => too long for today’s systems
  • Linked List => difficult to support continuous allocation
  • Index solution: index to free blocks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Journaling?

A

Quick recover the file system after a crash or power outage by specifying on disk what changes we want to make before we make them.

-> put transaction into log, perform, delete from log. After crash things in log? Perform!

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