diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-21 17:29:00 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-22 02:13:06 +0200 |
commit | f8a7890191f9d9a5742fda9f6b901b56da77d2f6 (patch) | |
tree | c874af540f8f1ad5ad02d33909561f4331a236f8 /include | |
parent | 3087470d0e903f0750424649f0a440dfb1ff48a3 (diff) |
Move data writer custom flags over to block processor
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r-- | include/sqfs/block_processor.h | 28 |
1 files changed, 26 insertions, 2 deletions
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; /** |