From f8a7890191f9d9a5742fda9f6b901b56da77d2f6 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 21 Sep 2019 17:29:00 +0200 Subject: Move data writer custom flags over to block processor Signed-off-by: David Oberhollenzer --- include/sqfs/block_processor.h | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'include/sqfs/block_processor.h') diff --git a/include/sqfs/block_processor.h b/include/sqfs/block_processor.h index 4b9bb9f..ca560f7 100644 --- a/include/sqfs/block_processor.h +++ b/include/sqfs/block_processor.h @@ -70,9 +70,33 @@ typedef enum { SQFS_BLK_COMPRESS_ERROR = 0x0008, /** - * @brief First user setable block flag. + * @brief Indicates that an equeued block is the first block of a file. */ - SQFS_BLK_USER = 0x0080 + SQFS_BLK_FIRST_BLOCK = 0x0010, + + /** + * @brief Indicates that an equeued block is the last block of a file. + */ + SQFS_BLK_LAST_BLOCK = 0x0020, + + /** + * @brief Allign the block on disk to device block size. + * + * If set in combination with @ref SQFS_BLK_FIRST_BLOCK, the output + * file is padded to a multiple of the device block size before writing + * the block. + * + * If used with @ref SQFS_BLK_LAST_BLOCK, the output file is padded + * after writing the block. + */ + SQFS_BLK_ALLIGN = 0x0040, + + /** + * @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. + */ + SQFS_BLK_FRAGMENT_BLOCK = 0x0080, } E_SQFS_BLK_FLAGS; /** -- cgit v1.2.3