libsquashfs 1.3.0
A new set of tools and libraries for working with SquashFS images
|
Follows a sqfs_inode_t if type is SQFS_INODE_EXT_FILE. More...
#include <inode.h>
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. | |
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.
sqfs_u64 blocks_start |
sqfs_u64 file_size |
sqfs_u32 fragment_idx |
sqfs_u32 fragment_offset |
sqfs_u64 sparse |