libsquashfs: include/sqfs/block_writer.h File Reference

libsquashfs 1.3.2 A new set of tools and libraries for working with SquashFS images

Loading...
Searching...
No Matches
block_writer.h File Reference

Contains declarations for the sqfs_block_writer_t structure. More...

`#include "sqfs/predef.h"`

Go to the source code of this file.

## Data Structures
interface | sqfs_block_writer_t
| Abstracts writing and deduplicating of data and fragment blocks. More...

## Enumerations
enum | SQFS_BLOCK_WRITER_FLAGS { SQFS_BLOCK_WRITER_HASH_COMPARE_ONLY = 0x01 , SQFS_BLOCK_WRITER_ALL_FLAGS = 0x01 }
| Flags that can be passed to sqfs_block_writer_create. More...

## Detailed Description

Contains declarations for the sqfs_block_writer_t structure.

Definition in file block_writer.h.

## Enumeration Type Documentation

## ◆ SQFS_BLOCK_WRITER_FLAGS

enum SQFS_BLOCK_WRITER_FLAGS

Flags that can be passed to sqfs_block_writer_create.

Enumerator
SQFS_BLOCK_WRITER_HASH_COMPARE_ONLY | If set, only compare checksums when deduplicating blocks. Since squashfs-tools-ng version 1.1, the default for the block writer is to compare checksum & size for blocks during deduplication and then read the potential match back from disk and do a byte for byte comparison to make absolutely sure they match. If this flag is set, the hash & size check is treated as being sufficient for block deduplication, which does increase performance, but risks data loss or corruption if a hash collision occours.
SQFS_BLOCK_WRITER_ALL_FLAGS | A combination of all valid flags.

Definition at line 98 of file block_writer.h.