From 285ea3a807d6158b7d3381ad97205e8e43a5c5f4 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 15 Feb 2020 22:46:24 +0100 Subject: Move block block accounting to the other end of the block pipeline This commit moves all of the fragment/block accounting in the block processor over to the writing end of the pipeline. In order to do this, the sparse blocks are allowed to bubble through the pipeline. Signed-off-by: David Oberhollenzer --- include/sqfs/block.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/sqfs') diff --git a/include/sqfs/block.h b/include/sqfs/block.h index 30fcc1d..b4860ac 100644 --- a/include/sqfs/block.h +++ b/include/sqfs/block.h @@ -88,6 +88,12 @@ typedef enum { */ SQFS_BLK_DONT_FRAGMENT = 0x0004, + /** + * @brief Set by the @ref sqfs_block_processor_t if it determines a + * block of a file to be sparse, i.e. only zero bytes. + */ + SQFS_BLK_IS_SPARSE = 0x0400, + /** * @brief Set by the @ref sqfs_block_processor_t on the first * block of a file. -- cgit v1.2.3