InodeHeader

Trait InodeHeader 

Source
pub trait InodeHeader {
    // Required methods
    fn data_layout(&self) -> DataLayout;
    fn xattr_icount(&self) -> u16;
    fn mode(&self) -> ModeField;
    fn size(&self) -> u64;
    fn u(&self) -> u32;

    // Provided methods
    fn additional_bytes(&self, blkszbits: u8) -> usize { ... }
    fn xattr_size(&self) -> usize { ... }
}
Expand description

Common interface for accessing inode header fields across different layouts

Required Methods§

Source

fn data_layout(&self) -> DataLayout

Returns the data layout method used by this inode

Source

fn xattr_icount(&self) -> u16

Returns the extended attribute inode count

Source

fn mode(&self) -> ModeField

Returns the file mode

Source

fn size(&self) -> u64

Returns the file size in bytes

Source

fn u(&self) -> u32

Returns the union field value (block address, device number, etc.)

Provided Methods§

Source

fn additional_bytes(&self, blkszbits: u8) -> usize

Calculates the number of additional bytes after the header

Source

fn xattr_size(&self) -> usize

Calculates the size of the extended attributes section

Implementors§