aboutsummaryrefslogtreecommitdiff
path: root/include/sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-15 22:46:24 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-15 23:05:41 +0100
commit285ea3a807d6158b7d3381ad97205e8e43a5c5f4 (patch)
tree54140627da1bb515cea51f31df65efc0675607ba /include/sqfs
parent9ac42164bc43bcdd47c0a8e5e59c662b2a136659 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs')
-rw-r--r--include/sqfs/block.h6
1 files changed, 6 insertions, 0 deletions
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
@@ -89,6 +89,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.
*/