Struct squashfs::inode::ExtendedFile[][src]

#[repr(C)]
pub struct ExtendedFile { pub block_idx: u64, pub size: u64, pub sparse: u64, pub nlink: u32, pub fragment_block_idx: u32, pub offset: u32, pub xattr_idx: u32, }

Fields

block_idx: u64

The offset from the start of the archive where the data blocks are stored

size: u64

The (uncompressed) size of this file

sparse: u64

The number of bytes saved by omitting blocks of zero bytes. Used in the kernel for sparse file accounting

nlink: u32

The number of hard links to this node

fragment_block_idx: u32

The index of a fragment entry in the fragment table which describes the data block the fragment of this file is stored in. If this file does not end with a fragment, this should be 0xFFFFFFFF

offset: u32

The (uncompressed) offset within the fragment data block where the fragment for this file. Information about the fragment can be found at fragment_block_index. The size of the fragment can be found as file_size % superblock.block_size If this file does not end with a fragment, the value of this field is undefined (probably zero)

xattr_idx: u32

An index into the xattr lookup table. Set to 0xFFFFFFFF if the inode has no extended attributes

Trait Implementations

Performs the conversion.

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.