libsquashfs: sqfs_dir_entry_t Struct Reference

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

Loading...
Searching...
No Matches
sqfs_dir_entry_t Struct Reference

On-disk data structure of a directory entry. Many of these follow a single sqfs_dir_header_t. More...

`#include <dir.h>`

Collaboration diagram for sqfs_dir_entry_t:

## Data Fields
sqfs_u16 | offset
| An offset into the uncompressed meta data block containing the coresponding inode.
sqfs_s16 | inode_diff
| Signed difference of the inode number from the one in the sqfs_dir_header_t.
sqfs_u16 | type
| The SQFS_INODE_TYPE value for the inode that this entry represents.
sqfs_u16 | size
| The size of the entry name.
sqfs_u8 | name []
| The name of the directory entry (no trailing null-byte).

## Detailed Description

On-disk data structure of a directory entry. Many of these follow a single sqfs_dir_header_t.

See sqfs_dir_writer_t for an overview on how SquashFS stores directories on disk.

Definition at line 74 of file dir.h.

## Field Documentation

## ◆ inode_diff

sqfs_s16 inode_diff

Signed difference of the inode number from the one in the sqfs_dir_header_t.

Definition at line 85 of file dir.h.

## ◆ name

sqfs_u8 name[]

The name of the directory entry (no trailing null-byte).

Definition at line 103 of file dir.h.

## ◆ offset

sqfs_u16 offset

An offset into the uncompressed meta data block containing the coresponding inode.

Definition at line 79 of file dir.h.

## ◆ size

sqfs_u16 size

The size of the entry name.

This value is stored off-by-one.

Definition at line 98 of file dir.h.

## ◆ type

sqfs_u16 type

The SQFS_INODE_TYPE value for the inode that this entry represents.

Definition at line 91 of file dir.h.

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

- include/sqfs/dir.h