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,
Set by the sqfs_block_processor_t if it determines a block of a file to be sparse, i.e. only zero bytes.
sqfs_u64 start_offset
Location of the fragment block on-disk.
Set by the sqfs_block_processor_t on fragment blocks that it generates.
Set by sqfs_block_processor_t if the block was actually compressed.
sqfs_u32 pad0
Unused. Always initialize this to 0.
Only calculate checksum, do NOT compress the data.
SQFS_BLK_FLAGS
Generic flags that tell the processor what to do with a block and flags that the processor sets when ...
Don't compute block data checksums.
Set by the sqfs_block_processor_t on the last block of a file.
Don't add the tail end of a file to a fragment block.
Set by the sqfs_block_processor_t on the first block of a file.
Supress sparse block detection.
The combination of all flags that are user settable.
Data structure that makes up the fragment table entries.
sqfs_u32 size
Size of the fragment block in bytes.
Set by the sqfs_block_processor_t to indicate that a block is a tail end of a file and the block...
Includes forward declarations of data structures, macros and integer types.
Align the block on disk to device block size.