summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-26 22:06:04 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-28 16:33:57 +0200
commit8b633067948a30a0d45091afcced0392dd28d105 (patch)
treed3cfdd43132da1cee604bd18b3569bd19ba8fdd8 /include
parent0f1bedc90f4cb71d965e99446cf3e72a45909346 (diff)
Add fragment and block checksum fields to file_info_t
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/fstree.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/fstree.h b/include/fstree.h
index eb7b65f..23634fc 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -78,9 +78,15 @@ struct file_info_t {
/* Byte offset into the fragment block. */
uint32_t fragment_offset;
- /* For each full data block, stores the compressed size.
- Bit (1 << 24) is set if the block is stored uncompressed. */
- uint32_t blocksizes[];
+ uint32_t fragment_chksum;
+
+ /* Stores data about each full data block. */
+ struct {
+ uint32_t chksum;
+
+ /* Bit (1 << 24) is set if the block is stored uncompressed. */
+ uint32_t size;
+ } blocks[];
};
/* Additional meta data stored in a tree_node_t for directories */