From 8b633067948a30a0d45091afcced0392dd28d105 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 26 Jul 2019 22:06:04 +0200 Subject: Add fragment and block checksum fields to file_info_t Signed-off-by: David Oberhollenzer --- include/fstree.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'include/fstree.h') 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 */ -- cgit v1.2.3