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§
Sourcefn data_layout(&self) -> DataLayout
fn data_layout(&self) -> DataLayout
Returns the data layout method used by this inode
Sourcefn xattr_icount(&self) -> u16
fn xattr_icount(&self) -> u16
Returns the extended attribute inode count
Provided Methods§
Sourcefn additional_bytes(&self, blkszbits: u8) -> usize
fn additional_bytes(&self, blkszbits: u8) -> usize
Calculates the number of additional bytes after the header
Sourcefn xattr_size(&self) -> usize
fn xattr_size(&self) -> usize
Calculates the size of the extended attributes section