Chapter_03 - File System Management
Chapter_03 - File System Management
subdirectory
The operations on the folder can be: Create,
Files
F1 F2 F4
F3
Fn
Directory Structure
6
Single Level Directory
Tree-Structured Directory
Organization of disk
7
partitions
Directory Table
8
The structure of
an entry in the
directory table of
MSDOS/WINDOW
S (FAT)
The structure of
an entry in the
directory table of
CP/M
The structure of
an entry in the
directory table of
UNIX
Continuous memory block allocation
9
Directory Table
Use one more structure:
linked list
index table
file allocation table
I-Nodes table
Non-continuous memory block allocation
- linked list
11
start: the first block number
end: the end block number
Each block:
Some first/end bytes to store the next block number of the file (4bytes)
The rest of the block will save the file's data
Non-continuous memory block allocation -
Index Table
12
Each file has an index table that occupies one or
several blocks
The index table contains all the block numbers of a
file.
An item in the directory table will store the block
number containing the file's index table
Non-continuous memory block allocation -
Index Table
13
Linked list
Each node in linked list is a block containing a
table:
empty block numbers
The last element of the table saves the next block
number in the linked list
Bit vector (bit sequence)
The i-th bit = 1: the i-th block (cluster) is empty.
Otherwise, the i-th block is used.
Vector bits are stored on one or more blocks, when
needed, read into memory for fast processing
Manage empty blocks - Linked list
21
Boot Sector
FAT table
ROOT DIR table
Boot Sector
26