mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 05:10:16 -05:00
Switch from deleted blocks to deleted files
This will allow an easier management of the parity allocation.
This commit is contained in:
parent
23983d6e9c
commit
f719ee4f57
4 changed files with 34 additions and 71 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue