Implemented garbage collection after each commit.
commit262b95e2fcdf9f51979542bfbab1c8cf6478e8d9
authorDavid Barr <david.barr@cordelta.com>
Tue, 16 Mar 2010 22:57:40 +0000 (17 09:57 +1100)
committerDavid Barr <david.barr@cordelta.com>
Tue, 16 Mar 2010 22:57:40 +0000 (17 09:57 +1100)
tree8a378d37e58ece455a18bea0fda642914c861e2c
parentc04a1193c22bd3f24f949939aecf613a47d05d3d
Implemented garbage collection after each commit.

New directories are marked and sorted by location of dirent block.
The dirents are relocated toward the start of the pool.
The contents of the dirents are changed to where the dirs will go.
The dirs are relocated toward the start of the pool.
Any empty dirs are remapped to the first dir in the pool.

Signed-off-by: David Barr <david.barr@cordelta.com>
repo_test.c
repo_tree.c
repo_tree.h