






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Various file allocation methods such as contiguous, linked, indexed, and hybrid multi-level index, along with their advantages and disadvantages. It also covers free space management techniques like bit vectors, linked lists, and run length encoding. The document concludes with implementing directories using linear lists and hash tables.
Typology: Study notes
1 / 10
This page cannot be seen from the preview
Don't miss anything!







z
z^
How do we select a free disk block to use? z^
Contiguous allocation–
allocate a contiguous chunk of space to a file
-^
directory entry indicates the starting block and the length of the file
-^
easy to implement, but
-^
how to satisfy a given sized request from a list of free holes?
-^
two options
What happens if one wants to append to file?
-^
from time to time, one will need to repack files
z^
Bring all pointers together in an
index block
-^
Each file has its own index block -
i th entry of index block points to
i th block making up the file
z^
How large to make an index block?–
To avoid a fixed maximum file size, index block must be extensible
z^
Linked scheme:–
maintain a linked list of indexed blocks
z^
Multilevel index:–
Index block can point to other index blocks (which point to indexblocks ....), which point to files
z^
Hybrid multi-level index–
first n blocks are from a fixed index
-^
next m blocks from an indirect index
-^
next o blocks from a double indirect index
z
z
2
blocks (4 GB) from a double indirect index
3
blocks (4 TB) from a triple indirect index
directory entry
IndirectIndex
double indirect index
z
simple, easy to implement
faster to traverse than linked allocation
z
fast access to any part of the file
files can have holes in them
z
z
z
z
consecutive blocks that are free
z
z
the file, file attribute codes
z