Frees the resources used by a Sqsh instance.
sqsh_superblock returns the configuration object of the archive
context.
Retrieves the export table of a Sqsh instance.
Retrieves the fragment table of a Sqsh instance.
Retrieves the id table of a Sqsh instance.
Retrieves the export table of a Sqsh instance.
sqsh_mapper returns the map manager to retrieve chunks of the archive
file.
initializes a archive context in heap.
sqsh_superblock returns the superblock context.
Retrieves the xattr table of a Sqsh instance.
cleans up an file context and frees the memory.
Frees a SqshCompressionOptions struct.
returns the compression level of gzip
returns the compression strategy of gzip
returns the compression window size of gzip
returns the flags of lz4
returns the version of lz4 used
returns the algorithm of lzo
returns the compression level of lzo
Initializes a SqshCompressionOptions struct.
returns the size of the compression options struct
returns the dictionary size of xz
returns the compression options of xz
returns the compression level of zstd
Retrieves the inode type of the current entry.
Frees the resources used by a directory iterator.
Retrieves the inode number of the current entry.
Since 1.2.0. Use sqsh_directory_iterator_inode() instead.
Retrieves the inode reference of the current entry.
Looks up an entry by name.
Since 1.3.0. Use sqsh_directory_iterator_name2() instead.
Retrieves the name of the current entry.
creates a heap allocated copy of the name of the current entry.
Since 1.3.0. Use sqsh_directory_iterator_name2() instead.
Allocates and initializes a new directory iterator.
Advances the iterator to the next entry.
Loads the inode of the current entry.
retrieves the contents of a directory as a list of file names
retrieves the contents of a directory as a list of file paths
retrieves the content of a file.
checks if a file exists.
retrieves the modification time of a file.
retrieves unix permissions of a file.
retrieves the size of a file.
easy/traversal.c
retrieves the value of a xattr key of a file or directory.
retrieves all xattr keys of a file or directory.
Get the error message for the given error code.
Retrieves an element from the table.
Getter for the amount of blocks of the file content. This is only
internally used and will be used while retrieving the file content.
Checks whether a certain block is compressed.
Getter the size of a block of the file content. This is only
internally used and will be used while retrieving the file content.
Getter for the start block of the file content. This is only
internally used and will be used while retrieving the file content.
returns the device id of the device inode.
Since 1.3.0. Use sqsh_file_directory_block_offset2() instead.
retrieve the directory block offset. This is only internally used
and will be used while iterating over the directory entries.
retrieve the directory block start. This is only internally used
and will be used while iterating over the directory entries.
retrieve the parent inode of the directory.
retrieve the fragment block index. This is only internally used
retrieve the fragment block offset. This is only internally used
and will be used while retrieving the file content.
returns the owner group id of the file.
Getter for the inode hard link count.
returns true if the file has a fragment block.
Getter for the inode number.
returns the inode reference to this file.
returns whether the file is an extended structure.
Returns the block size of the file iterator.
Gets a pointer to the current data in the file iterator.
Frees the resources used by a SqshFileIterator struct.
Creates a new SqshFileIterator struct and initializes it.
Reads a certain amount of data from the file iterator.
Gets the size of the data currently in the file iterator.
Skips blocks until the block containing the offset is reached.
Note that calling this function will invalidate the data pointer returned by
sqsh_file_iterator_data().
Getter for the file modification time in seconds since epoch.
Getter for the permissions of the file.
Advances the file reader by a certain amount of data and presents
size bytes of data to the user.
Gets a pointer to the current data in the file reader.
Cleans up resources used by a SqshFileReader struct.
Initializes a SqshFileReader struct.
Gets the size of the current data in the file reader.
Getter for the file size. 0 if the file has no size.
returns the target of a symbolic link. Be aware that the returned
value is not zero terminated.
creates a heap allocated copy of the target of a symbolic link.
resolves the symlink target. After calling this function the file is
in place changed to the target of the symlink.
resolves all symlink target targets until a file is hit. This function
is similar to sqsh_file_symlink_resolve() but resolves symlinks recursively
until a file is hit.
returns the length of the target of a symbolic link in bytes.
writes data to a file descriptor.
returns the type of the file.
returns the owner user id of the file.
returns index of the extended attribute inside of the xattr table.
Retrieves an element from the table.
Since 1.2.0. Use sqsh_inode_map_get2() instead.
Gets the inode reference for a given inode number.
Since 1.2.0. Use sqsh_inode_map_set2() instead.
Sets the inode reference for a given inode number.
Initialize the file context from a path. This function is identical to
sqsh_open() but if the path is a symlink, the symlink target not resolved.
Sets the user data for a mapper.
Retrieves the user data from a mapper.
Initialize the file context from a path.
Initializes a file context in heap
Returns the inode of the current working directory.
Lets the walker enter the current entry.
Cleans up resources used by a SqshPathResolver struct.
Returns the inode reference of the current entry.
Looks up an entry in the current directory.
Returns the name of the current entry. This entry is not zero
terminated.
creates a heap allocated copy of the name of the current entry.
Returns the size of the name of the current entry.
Creates a new SqshPathResolver object at the root inode.
Moves the walker to the next entry int the current directory.
Returns the inode of the current entry.
Resolve a path with the tree walker.
reverts the walker to the begining of the current directory.
Moves the walker to the root directory.
Returns the inode type of the current entry.
Moves the walker one level up
Print the error message for the given error code.
Retrieves the block size of a superblock context.
Retrieves the number of bytes used in a superblock context.
Retrieves the compression id of a superblock context.
Retrieves the start offset of the directory table in a superblock
context.
Retrieves the start offset of the export table in an archive.
Retrieves the number of fragment entries in a superblock context.
Retrieves the start offset of the fragment table in a superblock
context.
Checks if a superblock context has compression options.
Checks if a superblock context has an export table.
Checks if a superblock context has fragment table.
Checks if a superblock context has an xattr table.
Retrieves the number of ids in an archive.
Retrieves the start offset of the id table in an archive.
Retrieves the number of inodes in an archive.
Retrieves the reference of the root inode in a superblock context.
Retrieves the start offset of the inode table in an archive.
Retrieves the modification time of a superblock context.
Retrieves the major version of an archive.
Retrieves the minor version of an archive.
Retrieves the start offset of the xattr id table in an archive.
Retrieves an element from the table.
Retrieves the trailing data in a context.
Retrieves the size of the trailing data in a context.
Returns the path segment at a given index.
Arguments
Gets the underlying directory iterator pointing to the current entry.
Returns the name of the current entry. This entry is not zero
terminated. The function will return an emptry string for the uppermost
object.
creates a heap allocated copy of the name of the current entry.
Creates a new SqshTreeTraversal object at the root inode.
Moves the traversal to the next entry int the current directory.
Returns the inode of the current entry.
Returns the name of the current entry. This entry is not zero
terminated.
Returns the length of the path segment at a given index.
Sets the maximum depth of the traversal.
returns the state of the traversal.
Returns the inode type of the current entry.
Since 1.2.0. Use sqsh_path_resolver_down() instead.
Lets the walker enter the current entry.
Since 1.2.0. Use sqsh_path_resolver_free() instead.
Cleans up resources used by a SqshTreeWalker struct.
Since 1.2.0. Use sqsh_path_resolver_lookup() instead.
Looks up an entry in the current directory.
Since 1.2.0. Use sqsh_path_resolver_name() instead.
Returns the name of the current entry. This entry is not zero
terminated.
Since 1.2.0. Use sqsh_path_resolver_name_dup() instead.
Since 1.2.0. Use sqsh_path_resolver_name_size() instead.
Since 1.2.0. Use sqsh_path_resolver_new() instead.
Creates a new SqshTreeWalker object at the root inode.
Since 1.2.0. Use sqsh_path_resolver_next() instead.
Since 1.2.0. Use sqsh_path_resolver_open_file() instead.
Returns the inode of the current entry.
Since 1.2.0. Use sqsh_path_resolver_open_file() instead.
Since 1.2.0. Use sqsh_path_resolver_revert() instead.
reverts the walker to the begining of the current directory.
Since 1.2.0. Use sqsh_path_resolver_to_root() instead.
Moves the walker to the root directory.
Since 1.2.0. Use sqsh_path_resolver_type() instead.
Returns the inode type of the current entry.
Since 1.2.0. Use sqsh_path_resolver_up() instead.
Moves the walker one level up
Frees the resources used by an xattr iterator.
Compares the full name of the current xattr with a given 0-terminated
name.
creates a heap allocated copy of the full name of the current entry.
Checks if the current xattr is indirect.
Looks up an xattr by name.
Retrieves the name of the current xattr excluding the prefix.
Retrieves the size of the name of the current xattr.
Allocates and initializes a new xattr iterator.
Advances the iterator to the next xattr.
Retrieves the prefix of the current xattr.
Retrieves the size of the prefix of the current xattr.
Retrieves the type of the current xattr.
Retrieves the value of the current xattr.
creates a heap allocated copy of the value of the current entry.
Retrieves the size of the value of the current xattr.
Since 1.3.0. Use sqsh_xattr_iterator_value_size2() instead.
Retrieves the size of the value of the current xattr.