From 99f3eaecb4ad3c85d791361c8857e6ba2be8f9ea Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 29 Sep 2019 00:38:04 +0200 Subject: Bring back the don't fragment flag Signed-off-by: David Oberhollenzer --- include/sqfs/block.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/sqfs/block.h b/include/sqfs/block.h index 84629eb..7ee3bcb 100644 --- a/include/sqfs/block.h +++ b/include/sqfs/block.h @@ -80,6 +80,15 @@ typedef enum { */ SQFS_BLK_ALLIGN = 0x0002, + /** + * @brief Don't add the tail end of a file to a fragment block. + * + * If set, the @ref sqfs_data_writer_t will always generate a final + * block for a file, even if it is truncated. It will not add the + * tail end to a fragment block. + */ + SQFS_BLK_DONT_FRAGMENT = 0x0004, + /** * @brief Set by the @ref sqfs_data_writer_t on the first * block of a file. @@ -113,7 +122,7 @@ typedef enum { /** * @brief The combination of all flags that are user settable. */ - SQFS_BLK_USER_SETTABLE_FLAGS = 0x0003, + SQFS_BLK_USER_SETTABLE_FLAGS = 0x0007, } E_SQFS_BLK_FLAGS; /** -- cgit v1.2.3