]> git.neil.brown.name Git - LaFS.git/commit
FORMAT CHANGE - include start address explicitly in indirect blocks.
authorNeilBrown <neilb@suse.de>
Mon, 28 Sep 2009 00:16:17 +0000 (10:16 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 28 Sep 2009 00:16:17 +0000 (10:16 +1000)
commit7cfdec7d8156a8961c3413cca8e92340768c5b97
treedacc07e961be6ac5210cf14e15bd2ccd3c4d4e36
parent98e5f0bad62ccf0a5ed893fc6b06a109476ec318
FORMAT CHANGE - include start address explicitly in indirect blocks.

By storing the address of the first block in an indirect block,
that block can be relocated in the index tree with no adverse effects.
This makes it easier to handle blocks that have become empty.

So an indirect block now contains:
   u16 0x01   'indirect' indicator
   u32 addr   virtual address of first indexed block
   u48 paddr  physical address of first indexblock block
   u48 paddr2 next block ... etc
index.c
modify.c