Switch from deleted blocks to deleted files

This will allow an easier management of the parity allocation.
This commit is contained in:
Andrea Mazzoleni 2015-10-01 23:22:21 +02:00
parent 23983d6e9c
commit f719ee4f57
4 changed files with 34 additions and 71 deletions

View file

@ -288,21 +288,6 @@ struct snapraid_dir {
tommy_hashdyn_node nodeset;
};
/**
* Deleted entry.
*/
struct snapraid_deleted {
/**
* Deleted block.
* This block is always in state BLOCK_STATE_DELETED,
* and it's used to keep the old hash during a sync.
*/
struct snapraid_block block;
/* nodes for data structures */
tommy_node node;
};
/**
* Disk.
*/
@ -344,7 +329,7 @@ struct snapraid_disk {
tommy_list filelist;
/**
* List of all the snapraid_deleted blocks for the disk.
* List of all the deleted file for the disk.
*
* These files are kept allocated, because the blocks are still referenced in
* the ::blockarr.