From 8d9f24a65ef27a52615b3225776632de08462eba Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 24 Sep 2019 03:45:30 +0200 Subject: Move entire fragment processing from data writer to block processor So far, this is mostly a direct port from the block processor. The actual fragment checksumming is not done through the thread pool. Signed-off-by: David Oberhollenzer --- include/sqfs/block_processor.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'include/sqfs') diff --git a/include/sqfs/block_processor.h b/include/sqfs/block_processor.h index 5b7b3e0..f0f7145 100644 --- a/include/sqfs/block_processor.h +++ b/include/sqfs/block_processor.h @@ -77,11 +77,16 @@ typedef enum { SQFS_BLK_ALLIGN = 0x0008, /** - * @brief Indicates that a block is not part of a file but contains - * file tail ends and an entry in the fragment table has to be - * added. + * @brief Indicates that a block is a tail end of a file and the block + * processor should take care of fragment packing and accounting. */ - SQFS_BLK_FRAGMENT_BLOCK = 0x0010, + SQFS_BLK_IS_FRAGMENT = 0x0010, + + /** + * @brief Set by the block processor on fragment blocks that + * it generates. + */ + SQFS_BLK_FRAGMENT_BLOCK = 0x4000, /** * @brief Set by compressor worker if the block was actually compressed. -- cgit v1.2.3