Act 3: Lying About Storage

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

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

9 Terms

1
New cards

How does FAT32 link file fragments across data blocks?

Linked List Structure: FAT32 uses a centralized File Allocation Table (FAT) where each 32-bit entry corresponds to a physical data block. The value stored inside an entry points to the block index containing the next segment of the file, forming an on-disk linked list.

2
New cards

Given a FAT32 partition using 4 KB4\text{ KB} clusters, calculate the size of one File Allocation Table (FAT) if there are 2282^{28} addressable blocks.

FAT Size Calculation:

FAT Size=228 entries×4 bytes/entry=230 bytes=1 GB per FAT table[cite: 78, 80]\text{FAT Size} = 2^{28} \text{ entries} \times 4 \text{ bytes/entry} = 2^{30} \text{ bytes} = 1\text{ GB} \text{ per FAT table} \text{[cite: 78, 80]}

3
New cards

What is the fundamental factor limiting the maximum single file size on a FAT32 volume to 4 GB4\text{ GB}?

4 GB File Size Limit:

  • The directory table entry in FAT32 uses a 32-bit field to record file size in bytes.

  • 232 bytes=4,294,967,296 bytes=4 GB2^{32} \text{ bytes} = 4,294,967,296 \text{ bytes} = 4\text{ GB}.


4
New cards

What information is stored inside an Ext4 Inode vs. a Directory Table?

  • Inode: Stores all metadata for a specific entity (file permissions, owner UID, file size, timestamps, extent tree root describing physical data block locations). It does not store the filename.

  • Directory Table: Acts as a special file mapping human-readable filenames directly to global Inode numbers


5
New cards

Explain how Ext4 extents replace block pointer arrays to increase storage contiguity and lookup efficiency.

  • An extent represents a single contiguous run of physical blocks using a tuple: [Logical Block Start, Length, Physical Block Start].

  • Instead of storing individual block pointers for every 4 KB4\text{ KB} block, a single extent can map up to 128 MB128\text{ MB} of contiguous data, keeping lookups fast and reducing metadata storage overhead.


6
New cards

Trace how Ext4 handles file fragmentation when a file requires more than 4 extents.

An inode has space for 4 extents. When a 5th extent is needed, EXT4 can use an extent tree to store and organise the additional extent information. It does not mean the file can only have 4 extents.


7
New cards

Define the Crash Consistency Problem in storage systems.

Crash Consistency Problem: The risk that a sudden power failure or kernel crash during a multi-step filesystem operation (e.g., updating bitmaps, writing inodes, writing data) leaves on-disk data structures corrupted or in an inconsistent state.

8
New cards

Detail the exact four-step process Ext4 uses to perform a journaled write.

Ext4 Journaling Steps:

  1. Data Write: Write payload data to allocated data blocks and flush to disk.

  2. Journal Metadata Write: Write all impending metadata changes (inodes, bitmaps, directory entries) into the circular journal file and flush to disk.

  3. Journal Commit: Write a commit record containing a transaction sequence number and checksum to the journal and flush.

  4. Checkpointing: Copy the metadata changes from the journal to their permanent physical locations on the filesystem.


9
New cards

Why does FAT32 lack crash consistency compared to Ext4?

FAT32 Limitations: FAT32 writes metadata directly to disk without a transaction log or journal. If a crash occurs midway through updating duplicate FAT tables or directory entries, the filesystem structures become permanently desynchronized, leading to lost clusters or broken file chains.