summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-01 22:34:23 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-01 22:34:45 +0100
commit37485168b9a9ab870f5d8bf01da8cccb325f6de4 (patch)
tree44c5334eefe2d119b0309e412d4bd2f8e7bdfa49 /include
parentaaf7e68c75a907c3c08e83dfd2972665a0f1c1a3 (diff)
Add a "do not deduplicate" block flag
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/sqfs/block.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/sqfs/block.h b/include/sqfs/block.h
index b4860ac..5e79ff7 100644
--- a/include/sqfs/block.h
+++ b/include/sqfs/block.h
@@ -89,6 +89,14 @@ typedef enum {
SQFS_BLK_DONT_FRAGMENT = 0x0004,
/**
+ * @brief Surpress deduplication.
+ *
+ * If set on fragments or the last block of a file, it is always
+ * written to disk, even if a duplicate copy already exists.
+ */
+ SQFS_BLK_DONT_DEDUPLICATE = 0x0008,
+
+ /**
* @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.
*/
@@ -127,7 +135,7 @@ typedef enum {
/**
* @brief The combination of all flags that are user settable.
*/
- SQFS_BLK_USER_SETTABLE_FLAGS = 0x0007,
+ SQFS_BLK_USER_SETTABLE_FLAGS = 0x000F,
} E_SQFS_BLK_FLAGS;
#endif /* SQFS_BLOCK_H */