chapter 15: file system internals

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/60

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:22 AM on 4/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

61 Terms

1
New cards

What is a volume?

A partition or set of partitions typically formatted with a file system.

2
New cards

Why can one computer have multiple file systems?

Because it can have multiple storage devices and partitions.

3
New cards

What is a partition?

A slice of a storage device.

4
New cards

What usually happens to a volume before use?

It is formatted into a file system.

5
New cards

Examples of common UNIX/Linux file systems

ext2, ext3, ext4, zfs, ufs.

6
New cards

Examples of common Windows file systems

NTFS, FAT, FAT32.

7
New cards

What is tmpfs?

A special-purpose file system for temporary I/O.

8
New cards

What is procfs?

A file system in UNIX/Linux that presents process/system information as files.

9
New cards

What must happen before a file system can be used?

It must be mounted.

10
New cards

What is mounting?

Attaching a file system to a mount point so it becomes accessible.

11
New cards

What is a mount point?

A location in the directory tree, usually an empty directory, where a file system is attached.

12
New cards

What two things is the OS given when mounting?

The device name and the mount point.

13
New cards

What happens if the file system is already mounted?

The OS must decide whether multiple mounts are allowed.

14
New cards

What issue happens if the mount point is not empty?

Existing files may be hidden/obscured until the file system is unmounted.

15
New cards

What is a raw partition?

A partition with no file system, just blocks.

16
New cards

What is a raw partition good for?

Swap space or custom workloads like databases and RAID.

17
New cards

What is a cooked partition?

A partition containing a structured file system.

18
New cards

What is a bootable partition?

A partition with enough code to find and mount other file systems.

19
New cards

What can a bootable partition enable if it understands multiple OSs?

Dual booting.

20
New cards

What is a root partition?

The partition containing the operating system and the ability to mount other partitions.

21
New cards

Why is file sharing important?

User-oriented systems need users to share files.

22
New cards

Where is file-permission metadata kept?

In the FCB.

23
New cards

Why can sharing across systems be tricky?

User IDs may not match between systems.

24
New cards

What is a virtual file system (VFS)?

A layer that separates generic file-system operations from implementation details.

25
New cards

What does the VFS do?

Dispatches the correct operation to the correct file-system type.

26
New cards

Why is VFS useful?

It makes multiple file systems appear seamless to users/programs.

27
New cards

What is a remote file system?

A file system accessed over a network from another machine.

28
New cards

What early protocol was used to transfer files between machines?

FTP.

29
New cards

What does a distributed file system (DFS) do?

Makes remote file systems visible on local machines.

30
New cards

What Internet protocol is commonly used for file transfer today?

HTTP.

31
New cards

In the DFS client-server model, what is the client?

The machine trying to mount/use the remote file system.

32
New cards

In the DFS client-server model, what is the server?

The machine sharing its local file system.

33
New cards

What must the server do in a remote file system?

Authenticate and authorize clients.

34
New cards

What information does the client typically send?

User ID information along with operations.

35
New cards

Why are remote file systems harder than local ones?

They must handle more failure conditions.

36
New cards

What is one benefit of keeping state on both client and server?

Better error detection and more security.

37
New cards

What is one downside of keeping state on both client and server?

More overhead.

38
New cards

What are consistency semantics?

Rules for what happens when multiple users share a file at the same time.

39
New cards

Why not use normal process synchronization over the network?

It would generate too much network traffic.

40
New cards

What is a file session?

All actions between open() and close().

41
New cards

What can the server do during a file session?

Block other client requests until the session completes.

42
New cards

What is another simple consistency approach?

Share the file read-only.

43
New cards

What does NFS stand for?

Network File System.

44
New cards

What is NFS?

A popular remote file system using a client-server model.

45
New cards

What does Windows more commonly use instead of NFS?

CIFS.

46
New cards

How does an NFS share appear to the client?

As though it is part of the local file system.

47
New cards

Why is NFS good in heterogeneous environments?

It works across different OSs, machines, and network protocols.

48
New cards

What happens first in the NFS mount protocol?

The client requests a remote directory.

49
New cards

What does the server check during NFS mount?

Whether the client has permission to mount it, including read-only or read-write access.

50
New cards

What happens if the client is allowed to mount?

The mount is recorded in an export table.

51
New cards

What is the export table used for?

Tracking mounts, notifying clients of downtime, and revoking access.

52
New cards

What does the NFS remote operations protocol use?

Remote procedure calls (RPCs).

53
New cards

What can NFS RPCs do?

Search directories, read directory entries, manipulate links/directories, access attributes, and read/write files.

54
New cards

What is special about NFS version 3?

It is stateless.

55
New cards

What does stateless mean in NFSv3?

Each operation must provide all needed arguments because no session state is kept.

56
New cards

Main advantage of NFSv3 statelessness

Faster and less overhead.

57
New cards

Main disadvantage of NFSv3 statelessness

Less secure.

58
New cards

What is special about NFS version 4?

It is stateful.

59
New cards

Main advantage of NFSv4

More secure.

60
New cards

Main disadvantage of NFSv4

More overhead.

61
New cards

Why can NFS writes be delayed?

Because data must be safely written to disk and other clients/sessions may interfere.