File Management unit-III Part-4 (Chp-11)
File Management unit-III Part-4 (Chp-11)
Implementation
LA/512
Q
LA/
511
R
▪ Block to be accessed is the Qth block in the linked
chain of blocks representing the file.
▪ Displacement into block = R + 1
LA/512
R
▪ Calculation:
• Q = displacement into index table
• R = displacement into block
▪ More index blocks than can be addressed with 32-bit file pointer
i] 0 ⇒
= extra
▪ Bit map requires block[i]
space
• Example: occupied
block size = 4KB = 212 bytes
disk size = 240 bytes (1 terabyte)
n = 240/212 = 228 bits (or 32MB)
if clusters of 4 blocks -> 8MB of memory
▪ Counting
• Because space is frequently contiguously used and
freed, with contiguous-allocation allocation, extents,
or clustering
4 Keep address of first free block and count of
following free blocks
4 Free space list then has entries containing
addresses and counts