FAT File Systems Flashcards

1
Q

What should a file system provide to the application later of the operation system

A

A file system provides an abstraction of non-volatile storage to the application layer, this abstraction should be the same no matter what physical device is being used for storage

This should also be structured

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

What does the device controller provide to the bus protocol of a given device when discussing storage devices

A

Block Abstraction of the physical layer

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

What does it mean for hardware to be a “block device”

A

It means that the layer which actually stores the data can be managed as fixed-size blocks

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

What metadata does a FAT file system hold

A

The File Allocation Table
Directory Entries (start, size, name)

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

What must be considered when deciding how large to make a block size for a FAT file system

A

When using a large block size there is:
- Less overhead as the FAT can be smaller
- A higher amount of space lost due to internal fragmentation from files not taking up full blocks

Average block size is 4kB or 8kB on average

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

What was the purpose of Software Skew on CP/M

A

To give the CPU time to process one thing it read, before reading the next sector

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

What are the three highest level items of a FAT FS

A

The Master Boot Record
The Partition Table
Partitions

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

What does the Master Boot Record hold

A

It holds information on how the disk sectors are divided into partitions and can contain information on how to load the operating system

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

What does the Partition Table Hold

A

Information about each partition of the disk:
- Is it bootable
- Where is its first block
- What is its type
- What is its size

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

What does a Partition start with and what is some of the information this holds

A

The Volume Boot Record (also known as the Volume ID)
- Name
- Size of Sectors and Clusters
- Sectors per File Allocation Table
- Hidden Sectors (these never got usefully used)

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

Why does the Fat File System traditionally have more than one FAT, and where is the number of these FATs stored

A

There are often 2 (or more) FAT tables such that if one is damaged the files on the drive can be recovered, dating to when disks were more fragile

The number of these is stored in the Volume Boot Record

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

What does a directory entry store

A
  • The directory name
  • Attributes such as read only
  • Creation/ modification time
  • The size
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

For short directory names, how can a directory be marked as deleted

A

By setting the first character to a special character (0xe5)

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

What does the value of a FAT entry denote

A

The value of a given FAT entry denotes the index to the next cluster, unless a special character is used denoting something such as Unused, End of Cluster Chain or Bad

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

How can the start of the FAT be calculated from the Volume ID?

A

FATstart=LBAbegin+ Reserved Sectors x Bytes/ Sector

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

How can the start of the root be calculated from the Volume ID

A

Rootstart = FATstart + Number of FATs x Sectors/ FAT x Bytes / Sector

17
Q

How can the start of Data be calculated from the Volume ID

A

Datastart = Rootstart + Max Roots x 32

18
Q
A