libsquashfs: sqfs_inode_file_t Struct Reference

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

Loading...
Searching...
No Matches
sqfs_inode_file_t Struct Reference

Follows a sqfs_inode_t if type is SQFS_INODE_FILE. More...

`#include <inode.h>`

Collaboration diagram for sqfs_inode_file_t:

## Data Fields
sqfs_u32 | blocks_start
| Absolute position of the first data block.
sqfs_u32 | fragment_index
| Index into the fragment table or 0xFFFFFFFF if unused.
sqfs_u32 | fragment_offset
| Offset into the uncompressed fragment block or 0xFFFFFFFF if unused.
sqfs_u32 | file_size
| Total, uncompressed size of the file in bytes.

## Detailed Description

Follows a sqfs_inode_t if type is SQFS_INODE_FILE.

The declaration does not contain the flexible array member for the data block sizes because sqfs_inode_generic_t would otherwies be impossible to implement without violating the C standard.

For each data block, the inode is followed by a 32 bit integer that holds the on-disk size of the compressed block in bytes and has bit number 24 set if the block is stored uncompressed.

If a block size is specified as zero, it is assumed to be an entire block filled with zero bytes.

Definition at line 311 of file inode.h.

## Field Documentation

## ◆ blocks_start

sqfs_u32 blocks_start

Absolute position of the first data block.

Definition at line 315 of file inode.h.

## ◆ file_size

sqfs_u32 file_size

Total, uncompressed size of the file in bytes.

Definition at line 331 of file inode.h.

## ◆ fragment_index

sqfs_u32 fragment_index

Index into the fragment table or 0xFFFFFFFF if unused.

Definition at line 320 of file inode.h.

## ◆ fragment_offset

sqfs_u32 fragment_offset

Offset into the uncompressed fragment block or 0xFFFFFFFF if unused.

Definition at line 326 of file inode.h.

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

- include/sqfs/inode.h