The inode map context is used to cache inodes numbers and their corresponding inode references.
More...
#include <sqsh_archive_private.h>
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.
◆ sqsh_inode_map_get()
Gets the inode reference for a given inode number.
- Deprecated
- Since 1.2.0. Use sqsh_inode_map_get2() instead.
- Parameters
-
[in] | map | The context to use. |
[in] | inode_number | The inode number to get the reference for. |
- Returns
- The inode reference on success, 0 on error.
◆ sqsh_inode_map_get2()
Gets the inode reference for a given inode number.
- Parameters
-
[in] | map | The context to use. |
[in] | inode_number | The inode number to get the reference for. |
[out] | err | Pointer to an int where the error code will be stored. |
- Returns
- The inode reference on success, 0 on error.
◆ sqsh_inode_map_set()
Sets the inode reference for a given inode number.
- Deprecated
- Since 1.2.0. Use sqsh_inode_map_set2() instead.
- Parameters
-
[in] | map | The context to use. |
[in] | inode_number | The inode number to set the reference for. |
[in] | inode_ref | The inode reference to set. |
- Returns
- 0 on success, a negative value on error.
◆ sqsh_inode_map_set2()
Sets the inode reference for a given inode number.
- Parameters
-
[in] | map | The context to use. |
[in] | inode_number | The inode number to set the reference for. |
[in] | inode_ref | The inode reference to set. |
- Returns
- 0 on success, a negative value on error.
The documentation for this struct was generated from the following files: