Chapter 10 File System Interface Flashcards

1
Q

What 4 pieces of information are associated with an open file ?

A

➢File pointer - last r/w pos = file pos pointer
➢File-open count - tracks number of opens
➢Disk location of the file
➢Access right

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

What is used to track the next read location in a file ?

A

read pointer

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

What do open-file tables contain ?

A

information about all open files

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

Why are open-file tables used ?

A

better performance

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

What are two different ways to access a file ?

A

Sequential aceess
direct access (relative acc)

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

What are the main file operations ?

A

Creating, deleting, writing, reading, repositioning

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

What must be done first to a file system before it can be accessed by the system ?

A

mounted

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

What is another name for file repo and does it require any invovlment of the I/O

A

“file seek” & No

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

What file attribute is human readable ?

A

name

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

What file attribute is unique and not human readable ?

A

Identifier

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

What is used to track the next write location in a file ?

A

write pointer

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

What is the difference between direct and sequential access ?

A

sequential - simple, Information in the file is processed in order,

direct - file made up of fixed-length logical records that allow programs to read and write records rapidly in no particular orde

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