diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-29 11:23:40 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-29 11:23:40 +0200 |
commit | 3811f48ced97ec0fe56b48f0d9d906a43037e2fd (patch) | |
tree | 8fbd43f0bc86e1dd1d0b414158d7986cbff82474 /tests/fstree_init.c | |
parent | 864302059679c15bc223d37ed8cef87c5b4a97aa (diff) |
Fix order of data block deduplication
Data blocks need to be deduplicated before attempting to write a fragment.
In the current attempt if the data blocks are found to be duplicates but
the fragment isn't, the flushed fragments are purged as well, possibly
damaging other files.
Also, when the deduplication happens, the HAS_FRAGMENT flag needs to be
set, otherwise the deduplication code thinks that there is one more block
than there actually is.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/fstree_init.c')
0 files changed, 0 insertions, 0 deletions