file systems Flashcards

1
Q

what are file systems

A

parts of the os that take storage devices and provide structure to them so we can store and retrieve files

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

unlink operation

A

remove file alias

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

link operation

A

creates a file alias

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

what are some of the attributes of a file system

A

name
unique id
type
location
size
access control list/flags
date and time (accessed, modified etc)
ownership (user, group)

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

.

A

current directory

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

..

A

parent directory

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

capability based systems

A

theres a matrix of operations x actors in the system and where they overlap is the permissions that they have for each file

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

what happens when we create an alias for a file

A

more than one person can view and edit the file and they each have their own copy

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

what happens when we allow multiple links to a file

A

the system becomes a graph potentially with cycles instead of a tree
therefore processes that scan directories may get trapped
which is why we dont allow links back to a directory

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

what is a virtual file system

A

it represents the entire set of files and directories across all the devices we have
it has an api that reflects the file system operations

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

what does the mount command on unix do

A

integrates a dile system into the virtual one via mapping it into the existing directory structure where mount (mount point) appears so its accessible like the rest of the system

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

what command in unix do we use to integrate a file system into the virtual one

A

mount

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

what are some improvements in file systems

A

fine grained timestamps (ns)
db tech in file systems (directories, accessing tree of extents)

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

what is a benefit of dbs in file systems

A

very powerful

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

what is a negative of dbs in file systems

A

problematic due to the expected results of common operations
no longer a simple tree of files and directories which is what the users and applications expect

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

how does delayed allocation work

A

delays writes to the disk via in memory buffers and a periodic flush
applications can pre-allocate space on the disk

17
Q

what is a benefit of delayed allocation

A

reduces fragmentation (doesnt eliminate)

18
Q

how do extents and delayed writes make file reads more efficient

A

theres less meta data to process: pointers, indexes ets
less fragmentation
less head movement

19
Q

what is the operation for apps to preallocate

A

fallocate()