
Untitled
By: a guest on
Aug 22nd, 2012 | syntax:
None | size: 0.80 KB | hits: 6 | expires: Never
header is a fixed size metadata block
sector is a fixed size data block
extent is a variable size data block constructed from sectors
header - 16 words
sector 0 - block_size words
sector 1 - block_size words
sector 2 - block_size words
...
sector N
------------
sector:
next_sector_index - 1 word
data - block_size - 1 words
-----------
extent (only exists in memory, not stored literally on disk):
#extents can be read to read a file as a continuous section like: (inode,(data|links))
size - 2 words
first_block - 1 word
-----------
Reading a file:
start with path and root sector
read inode from root sector (using extent)
for for part of path:
find link, get new sector id
read sector, get new inode
#now we have the sector+inode of the file we want
create extent from inode, read extent to get file data