Directories Flashcards

1
Q

What is the problem with duplicating file information when shared files are required?

A

It is difficult to maintain consistency if either file is modified. Only suitable for read-only files

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

What is the difference between a hard link and a soft link?

A

Hard links point to the actual file inode or FCB. Soft links just point to another hard link.

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

What happens when the file pointed to by a symbolic link is deleted?

A

The soft link points to nothing. Errors are generated when trying to open it. Think shortcuts in Windows OS.

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

What happens when hard links are deleted?

A

The file reference count in the file inode is decremented. If it was the last hard link, then the entire file is deleted.

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

What is a single-level directory?

A

All files are kept in the same space

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

What are problems with single-level directory?

A

Unique filenames. Large number of files difficult to search, or organise.

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

What is a multi-level directory structure?

A

Each user gets their own User File Directory (UFD) which are located in the Master File Directory (MFD)

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

Benefit with UFDs?

A

Users can have duplicate filenames between each other.

Still no sharing, or subdirectories.

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

Why doesn’t UNIX allow directory hard links?

A

They will introduce cycles in file system tree, causing infinite recursion during traversal.

UNIX only allows symbolic links to directories.

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