Lecture 9 Flashcards

1
Q

What does file systems consist of?

A

A storage service and a directory service

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

What is a storage service?

A

Clients do not know about physical characteristics of the disks or where on the disk the files have been stored

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

What does a storage service need to make sure of?

A

That a file is not lost, even if there are hardware failures or software crashes

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

What is a directory service?

A

Clients can give convenient text names to files and group them in directories

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

What is the purpose of a directory service?

A

Clients should be able to access the sharing of their files with others by specifying who can access a given file

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

What is a file directory?

A

A structure associated with any file management system and collection of files

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

What does a file directory contain?

A

Information about the files. MOST OF INFO HANDLED BY OS. Some information is availiable to users through system routines (the user cannot directly access the directory=

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

When is a tree-structured file system less effective?

A

When there are a large number of files in a given directory

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

What are the pros of different unit sizes when allocating space for a file?

A

Fixed-size: Simplify the reallocation of space
Small fixed-size: Reduce wasted space
Lots of small units requires more space for allocation tables

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

What is static allocation?

A

Declare the max size in advance

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

What are the cons of static allocation?

A

-May be hard to guess space needed
- Tendency to overestimate space needed

(Only OK if the file will never change)

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

What are some cons of dynamic allocation?

A

Files are often no longer contiguous

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

What are the three allocation methods?

A

Contiguous allocation
Chained allocation
Indexed allocation

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

What is contiguous allocation?

A

A single contiguous. set of blocks assigned to a file when it’s created.

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

What are some pros and cons of contiguous allocation?

A

Good performance for sequential files
External fragmentation and the need to specify file size at creation

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

How can external fragmentation in contiguous allocation be managed?

A

By using compaction to combine free space

17
Q

How does chained allocation work?

A

Each block contains a pointer to the next block, forming a chain

18
Q

What are the benefits of chained allocation?

A

It is easy to add blocks to a file and is well-suited for sequential access

19
Q

What is a drawback of chained allocation regarding access patterns?

A

It does not accommodate locality, requiring multiple disk accesses for random blocks

20
Q

What does “file consolidation” mean in the context of chained allocation?

A

Consolidation is a process using utility software to improve locality for better performance

21
Q

How does indexed allocation work?

A

A file allocation table contains a separate index for each file, listing the locations of all blocks assigned to the file

22
Q

What types of file access are supported by indexed allocation?

A

Both sequential and random access

23
Q

What is a key feature of fixed-size blocks in indexed allocation?

A

They simplify tracking and allocating space for files.

24
Q
A