libsquashfs  1.3.2
A new set of tools and libraries for working with SquashFS images
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:

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.


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