libsqsh v1.5.1
Loading...
Searching...
No Matches
SqshInodeMap Struct Reference

The inode map context is used to cache inodes numbers and their corresponding inode references. More...

#include <sqsh_archive_private.h>

Public Member Functions

SQSH_NO_UNUSED uint64_t sqsh_inode_map_get (const struct SqshInodeMap *map, uint64_t inode_number)
 Gets the inode reference for a given inode number.
 
SQSH_NO_UNUSED uint64_t sqsh_inode_map_get2 (const struct SqshInodeMap *map, uint32_t inode_number, int *err)
 Gets the inode reference for a given inode number.
 
SQSH_NO_UNUSED int sqsh_inode_map_set (struct SqshInodeMap *map, uint64_t inode_number, uint64_t inode_ref)
 Sets the inode reference for a given inode number.
 
SQSH_NO_UNUSED int sqsh_inode_map_set2 (struct SqshInodeMap *map, uint32_t inode_number, uint64_t inode_ref)
 Sets the inode reference for a given inode number.
 

Detailed Description

The inode map context is used to cache inodes numbers and their corresponding inode references.

Definition at line 107 of file sqsh_archive_private.h.

Member Function Documentation

◆ sqsh_inode_map_get()

SQSH_NO_UNUSED uint64_t sqsh_inode_map_get ( const struct SqshInodeMap * map,
uint64_t inode_number )

Gets the inode reference for a given inode number.

Deprecated
Since 1.2.0. Use sqsh_inode_map_get2() instead.
Parameters
[in]mapThe context to use.
[in]inode_numberThe inode number to get the reference for.
Returns
The inode reference on success, 0 on error.

◆ sqsh_inode_map_get2()

SQSH_NO_UNUSED uint64_t sqsh_inode_map_get2 ( const struct SqshInodeMap * map,
uint32_t inode_number,
int * err )

Gets the inode reference for a given inode number.

Parameters
[in]mapThe context to use.
[in]inode_numberThe inode number to get the reference for.
[out]errPointer to an int where the error code will be stored.
Returns
The inode reference on success, 0 on error.

◆ sqsh_inode_map_set()

SQSH_NO_UNUSED int sqsh_inode_map_set ( struct SqshInodeMap * map,
uint64_t inode_number,
uint64_t inode_ref )

Sets the inode reference for a given inode number.

Deprecated
Since 1.2.0. Use sqsh_inode_map_set2() instead.
Parameters
[in]mapThe context to use.
[in]inode_numberThe inode number to set the reference for.
[in]inode_refThe inode reference to set.
Returns
0 on success, a negative value on error.

◆ sqsh_inode_map_set2()

SQSH_NO_UNUSED int sqsh_inode_map_set2 ( struct SqshInodeMap * map,
uint32_t inode_number,
uint64_t inode_ref )

Sets the inode reference for a given inode number.

Parameters
[in]mapThe context to use.
[in]inode_numberThe inode number to set the reference for.
[in]inode_refThe inode reference to set.
Returns
0 on success, a negative value on error.

The documentation for this struct was generated from the following files: