CS-3310 - 04 I/O and Disks - Filesystem Implementations

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards

What are the main on-disk structures of a file system?

Superblock, inode table, data region, and allocation structures (free lists or bitmaps).

2
New cards

What is the superblock?

A metadata block that stores global information about the file system (size, number of inodes, data blocks, etc.).

3
New cards

What is an inode?

A structure storing metadata and block pointers for a file.

4
New cards

Why are inodes important?

They separate file metadata from directory names and link the logical file to physical disk blocks.

5
New cards

What are direct pointers in an inode?

Pointers that directly reference data blocks.

6
New cards

What are indirect pointers?

Pointers that reference blocks containing more pointers, used for large files.

7
New cards

What is the data region?

The portion of disk where file contents are stored.

8
New cards

How does the OS keep track of free blocks?

Using free lists or bitmaps.

9
New cards

What is a directory's internal structure?

A list of (file name, inode number) pairs.

10
New cards

Why does deleting files leave gaps in directories?

Because entries are removed, leaving unused slots that can later be reused.

11
New cards

What is FAT (File Allocation Table)?

A table that keeps track of linked blocks for each file; used in older systems like MS-DOS.

12
New cards

What is a disadvantage of linked-list-based allocation?

Slow random access since you must traverse links sequentially.

13
New cards

How does FAT improve upon simple linked allocation?

Stores the link information in memory, enabling faster random access.

14
New cards

What is crash consistency?

The property that file systems remain in a valid state even after a crash or power loss.

15
New cards

What is fsck?

A file system checker that repairs inconsistencies between free lists, inodes, and directory entries.

16
New cards

What is journaling in file systems?

Logging intended changes before applying them, allowing recovery after a crash.

17
New cards

What does it mean for operations to be idempotent?

They can be repeated safely without changing the final result.

18
New cards

Why are backups important?

They allow recovery from both system failures and user mistakes.

19
New cards

What is an incremental backup?

A backup that saves only the data changed since the last backup.

20
New cards

What are the two kinds of backups?

Physical dumps (block-based) and logical dumps (file-based).

21
New cards

What is the main structure of the MS-DOS file system?

Fixed-size directory entries and FAT for tracking clusters.

22
New cards

What is the maximum theoretical file size in FAT32?

4 GB.

23
New cards

What does the UNIX v7 file system use for addressing?

Single, double, and triple indirect blocks.

24
New cards

What is ISO 9660?

A standard for CD-ROM file systems designed for maximum compatibility.

25
New cards

What are Rock Ridge extensions?

ISO 9660 extensions to support UNIX features like permissions and symbolic links.

26
New cards

What is Joliet?

A Microsoft extension to ISO 9660 that allows long Unicode filenames and deeper directories.