libsquashfs 1.3.0
A new set of tools and libraries for working with SquashFS images
Loading...
Searching...
No Matches
sqfs_inode_file_ext_t Struct Reference

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

#include <inode.h>

Collaboration diagram for sqfs_inode_file_ext_t:
Collaboration graph

Data Fields

sqfs_u64 blocks_start
 Absolute position of the first data block.
 
sqfs_u64 file_size
 Total, uncompressed size of the file in bytes.
 
sqfs_u64 sparse
 If the file is sparse, holds the number of bytes not written to disk because of the omitted sparse blocks.
 
sqfs_u32 nlink
 Number of hard links to this node.
 
sqfs_u32 fragment_idx
 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 xattr_idx
 Extended attribute index.
 

Detailed Description

Follows a sqfs_inode_t if type is SQFS_INODE_EXT_FILE.

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 343 of file inode.h.

Field Documentation

◆ blocks_start

sqfs_u64 blocks_start

Absolute position of the first data block.

Definition at line 347 of file inode.h.

◆ file_size

sqfs_u64 file_size

Total, uncompressed size of the file in bytes.

Definition at line 352 of file inode.h.

◆ fragment_idx

sqfs_u32 fragment_idx

Index into the fragment table or 0xFFFFFFFF if unused.

Definition at line 368 of file inode.h.

◆ fragment_offset

sqfs_u32 fragment_offset

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

Definition at line 374 of file inode.h.

◆ nlink

sqfs_u32 nlink

Number of hard links to this node.

Definition at line 363 of file inode.h.

◆ sparse

sqfs_u64 sparse

If the file is sparse, holds the number of bytes not written to disk because of the omitted sparse blocks.

Definition at line 358 of file inode.h.

◆ xattr_idx

sqfs_u32 xattr_idx

Extended attribute index.

Definition at line 379 of file inode.h.


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