31#define SQFS_META_BLOCK_SIZE 8192
33#define SQFS_IS_BLOCK_COMPRESSED(size) (((size) & (1 << 24)) == 0)
34#define SQFS_ON_DISK_BLOCK_SIZE(size) ((size) & ((1 << 24) - 1))
35#define SQFS_IS_SPARSE_BLOCK(size) (SQFS_ON_DISK_BLOCK_SIZE(size) == 0)
153 SQFS_BLK_FLAGS_ALL = 0xFC3F,
SQFS_BLK_FLAGS
Generic flags that tell the processor what to do with a block and flags that the processor sets when ...
@ SQFS_BLK_FIRST_BLOCK
Set by the sqfs_block_processor_t on the first block of a file.
@ SQFS_BLK_USER_SETTABLE_FLAGS
The combination of all flags that are user settable.
@ SQFS_BLK_IS_COMPRESSED
Set by sqfs_block_processor_t if the block was actually compressed.
@ SQFS_BLK_IS_FRAGMENT
Set by the sqfs_block_processor_t to indicate that a block is a tail end of a file and the block.
@ SQFS_BLK_FRAGMENT_BLOCK
Set by the sqfs_block_processor_t on fragment blocks that it generates.
@ SQFS_BLK_DONT_HASH
Don't compute block data checksums.
@ SQFS_BLK_DONT_COMPRESS
Only calculate checksum, do NOT compress the data.
@ SQFS_BLK_DONT_FRAGMENT
Don't add the tail end of a file to a fragment block.
@ SQFS_BLK_IGNORE_SPARSE
Supress sparse block detection.
@ SQFS_BLK_LAST_BLOCK
Set by the sqfs_block_processor_t on the last block of a file.
@ SQFS_BLK_IS_SPARSE
Set by the sqfs_block_processor_t if it determines a block of a file to be sparse,...
@ SQFS_BLK_DONT_DEDUPLICATE
Surpress deduplication.
@ SQFS_BLK_ALIGN
Align the block on disk to device block size.
Includes forward declarations of data structures, macros and integer types.
Data structure that makes up the fragment table entries.
sqfs_u32 size
Size of the fragment block in bytes.
sqfs_u64 start_offset
Location of the fragment block on-disk.
sqfs_u32 pad0
Unused. Always initialize this to 0.