File System Implementation Flashcards
What are the 4 layers in the big picture of the file system?
Top: file-system interface
VFS interface
Local/Remote file system
Disk/network
There are ___ aspects for implementing a file system
two
The two aspects for implementing a file system are _____ ________ and ______ _______
data structures, access methods
For file system data structures, there can be ________ data structures or _________ structures
On-disk, in-memory
On-disk data structures hold the directory ______, number of ______, _______ of free blocks, _____ information, etc
structure, blocks, location, boot
In-memory structures are for _______ file system at run-time and ________
managing, caching
Access methods handle ____ made by processes to open, close, read, write, etc
calls
We organize the disk by dividing it into ______
blocks
Disk block sizes are ______
fixed
Disk blocks are addressed from 0 to ____
N-1
What are the two types of disk blocks?
Data blocks and metadata blocks
Data blocks file actual ____
data
Metadata blocks ________ data
manage
What are example of metadata blocks?
inode, superblock, bitmaps, etc
What are data regions?
It reserves blocks to store user data
The file system has to track which data blocks track _____, size of ____, the file’s ______, etc
files, files, owner
The file system has to reserve some space for a ______ table
inode
An inode table is an _____ of on-disk inodes
array
If the inode table occupies 5 4kb blocks, and the inode size is 256 byte, how many inodes does the file system contain?
80
We can use ______ to track whether inodes or data blocks are free or allocated
bitmaps