90__attribute__((deprecated(
"Since 1.2.0. Use sqsh_inode_map_get2() "
92sqsh_inode_map_get(const struct
SqshInodeMap *map, uint64_t inode_number);
106 const struct
SqshInodeMap *map, uint32_t inode_number,
int *err);
119__attribute__((deprecated("Since 1.2.0. Use sqsh_inode_map_set2() "
122 struct
SqshInodeMap *map, uint64_t inode_number, uint64_t inode_ref);
135 struct
SqshInodeMap *map, uint32_t inode_number, uint64_t inode_ref);
428#ifndef SQSH__NO_DEPRECATED_FIELD
430 deprecated(
"Since 1.5.0. data_lru_size or metablock_lru_size "
478 const void *source,
const struct SqshConfig *config,
int *err);
#define SQSH_NO_UNUSED
Warn if return value is unused.
SqshLzoAlgorithm
definitions of Lzo algorithms
SqshGzipStrategies
definitions of gzip strategies
SqshXzFilters
definitions xz filters
SqshSuperblockCompressionId
The compression used in the archive.
SQSH_NO_UNUSED int sqsh_archive_export_table(struct SqshArchive *archive, struct SqshExportTable **export_table)
Retrieves the export table of a Sqsh instance.
SQSH_NO_UNUSED int sqsh_archive_fragment_table(struct SqshArchive *archive, struct SqshFragmentTable **fragment_table)
Retrieves the fragment table of a Sqsh instance.
SQSH_NO_UNUSED struct SqshArchive * sqsh_archive_open(const void *source, const struct SqshConfig *config, int *err)
initializes a archive context in heap.
SQSH_NO_UNUSED int sqsh_archive_inode_map(struct SqshArchive *archive, struct SqshInodeMap **inode_map)
Retrieves the export table of a Sqsh instance.
struct SqshMapManager * sqsh_archive_map_manager(struct SqshArchive *archive)
sqsh_mapper returns the map manager to retrieve chunks of the archive file.
const struct SqshConfig * sqsh_archive_config(const struct SqshArchive *archive)
sqsh_superblock returns the configuration object of the archive context.
SQSH_NO_UNUSED int sqsh_archive_xattr_table(struct SqshArchive *archive, struct SqshXattrTable **xattr_table)
Retrieves the xattr table of a Sqsh instance.
int sqsh_archive_close(struct SqshArchive *archive)
Frees the resources used by a Sqsh instance.
const struct SqshSuperblock * sqsh_archive_superblock(const struct SqshArchive *archive)
sqsh_superblock returns the superblock context.
SQSH_NO_UNUSED int sqsh_archive_id_table(struct SqshArchive *archive, struct SqshIdTable **id_table)
Retrieves the id table of a Sqsh instance.
The compression options context is used to store the compression options for a specific compression a...
uint32_t sqsh_compression_options_lzo_compression_level(const struct SqshCompressionOptions *context)
returns the compression level of lzo
uint32_t sqsh_compression_options_zstd_compression_level(const struct SqshCompressionOptions *context)
returns the compression level of zstd
SQSH_NO_UNUSED struct SqshCompressionOptions * sqsh_compression_options_new(struct SqshArchive *sqsh, int *err)
Initializes a SqshCompressionOptions struct.
enum SqshLzoAlgorithm sqsh_compression_options_lzo_algorithm(const struct SqshCompressionOptions *context)
returns the algorithm of lzo
uint32_t sqsh_compression_options_xz_dictionary_size(const struct SqshCompressionOptions *context)
returns the dictionary size of xz
uint32_t sqsh_compression_options_lz4_version(const struct SqshCompressionOptions *context)
returns the version of lz4 used
int sqsh_compression_options_free(struct SqshCompressionOptions *context)
Frees a SqshCompressionOptions struct.
enum SqshGzipStrategies sqsh_compression_options_gzip_strategies(const struct SqshCompressionOptions *context)
returns the compression strategy of gzip
uint32_t sqsh_compression_options_gzip_compression_level(const struct SqshCompressionOptions *context)
returns the compression level of gzip
uint16_t sqsh_compression_options_gzip_window_size(const struct SqshCompressionOptions *context)
returns the compression window size of gzip
size_t sqsh_compression_options_size(const struct SqshCompressionOptions *context)
returns the size of the compression options struct
enum SqshXzFilters sqsh_compression_options_xz_filters(const struct SqshCompressionOptions *context)
returns the compression options of xz
uint32_t sqsh_compression_options_lz4_flags(const struct SqshCompressionOptions *context)
returns the flags of lz4
The SqshConfig struct contains all the configuration options for a sqsh session.
size_t max_symlink_depth
the maximum depth of symlinks that will be followed. If unset or 0, the max symlink depth will be 100...
int compression_lru_size
the size of the LRU cache used to cache chunks of data from the compression algorithm....
int metablock_lru_size
the size of the LRU cache used to cache chunks of data from the metablocks. If unset or 0,...
int data_lru_size
the size of the LRU cache used to cache chunks of data from the data blocks. If unset or 0,...
int mapper_block_size
the block size used to retrieve chunks of data from the mapper. If unset or 0, the block size will be...
uint64_t source_size
represents the addressable size of the source in bytes.
const struct SqshMemoryMapperImpl * source_mapper
source_mapper is the memory mapper implementation that will be used to map the archive.
uint64_t archive_offset
represents the offset in bytes where the sqsh_archive will start.
int mapper_lru_size
the size of the LRU cache used to cache chunks of data from the mapper. If unset or 0,...
The fragment table of an archive.
The id table of an archive.
The inode map context is used to cache inodes numbers and their corresponding inode references.
The implementation of a memory mapper.
The superblock context is used to access the superblock of the archive.
The trailing context is used to access the trailing data of the archive.
size_t sqsh_trailing_size(const struct SqshTrailingContext *context)
Retrieves the size of the trailing data in a context.
const uint8_t * sqsh_trailing_data(const struct SqshTrailingContext *context)
Retrieves the trailing data in a context.
The extended attribute lookup table.