#[repr(C)]
pub struct INode {
Show 23 fields pub e2di_mode: U16, pub e2di_uid: U16, pub e2di_size: U32, pub e2di_atime: U32, pub e2di_ctime: U32, pub e2di_mtime: U32, pub e2di_dtime: U32, pub e2di_gid: U16, pub e2di_nlink: U16, pub e2di_nblock: U32, pub e2di_flags: U32, pub e2di_version: [u8; 4], pub e2di_blocks: [u8; 60], pub e2di_gen: U32, pub e2di_facl: U32, pub e2di_size_high: U32, pub e2di_faddr: U32, pub e2di_nblock_high: U16, pub e2di_facl_high: U16, pub e2di_uid_high: U16, pub e2di_gid_high: U16, pub e2di_chksum_lo: U16, pub e2di_lx_reserved: U16, /* private fields */
}

Fields§

§e2di_mode: U16

Access permission flags.

§e2di_uid: U16

Owner UID.

§e2di_size: U32

Size (in bytes).

§e2di_atime: U32

Access time.

§e2di_ctime: U32

Change time.

§e2di_mtime: U32

Modification time.

§e2di_dtime: U32

Deletion time.

§e2di_gid: U16

Owner GID.

§e2di_nlink: U16

File link count.

§e2di_nblock: U32

Block count.

§e2di_flags: U32

Status flags.

§e2di_version: [u8; 4]

INode version.

§e2di_blocks: [u8; 60]

Extent tree.

§e2di_gen: U32

Generation.

§e2di_facl: U32

EA block.

§e2di_size_high: U32

High bits for file size.

§e2di_faddr: U32

Fragment address (obsolete).

§e2di_nblock_high: U16

High bits for block count.

§e2di_facl_high: U16

High bits for EA block.

§e2di_uid_high: U16

High bits for Owner UID.

§e2di_gid_high: U16

High bits for Owner GID.

§e2di_chksum_lo: U16

High bits for INode checksum.

§e2di_lx_reserved: U16

Implementations§

source§

impl INode

source

pub fn extent_tree_node(&self) -> Result<ExtentTreeNode<&[u8]>, ParsingError>

INode contains the root of its Extent tree within e2di_blocks. Read e2di_blocks and return the root Extent Header.

source

pub fn size(&self) -> u64

Size of the file/directory/entry represented by this INode.

source

pub fn facl(&self) -> u64

source

pub fn e4di_extra_isize(&self, sb: &SuperBlock) -> Result<LEU16, ParsingError>

source

pub fn e4di_chksum_hi(&self, sb: &SuperBlock) -> Result<LEU16, ParsingError>

source

pub fn e4di_ctime_extra(&self, sb: &SuperBlock) -> Result<LEU32, ParsingError>

source

pub fn e4di_mtime_extra(&self, sb: &SuperBlock) -> Result<LEU32, ParsingError>

source

pub fn e4di_atime_extra(&self, sb: &SuperBlock) -> Result<LEU32, ParsingError>

source

pub fn e4di_crtime(&self, sb: &SuperBlock) -> Result<LEU32, ParsingError>

source

pub fn e4di_crtime_extra(&self, sb: &SuperBlock) -> Result<LEU32, ParsingError>

source

pub fn e4di_version_hi(&self, sb: &SuperBlock) -> Result<LEU32, ParsingError>

source

pub fn e4di_projid(&self, sb: &SuperBlock) -> Result<LEU32, ParsingError>

Trait Implementations§

source§

impl FromBytes for INode
where U16: FromBytes, U32: FromBytes, [u8; 4]: FromBytes, [u8; 60]: FromBytes,

§

fn ref_from(bytes: &[u8]) -> Option<&Self>
where Self: Sized + NoCell,

Interprets the given bytes as a &Self without copying. Read more
§

fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
where Self: Sized + NoCell,

Interprets the prefix of the given bytes as a &Self without copying. Read more
§

fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
where Self: Sized + NoCell,

Interprets the suffix of the given bytes as a &Self without copying. Read more
§

fn slice_from(bytes: &[u8]) -> Option<&[Self]>
where Self: Sized + NoCell,

Interprets the given bytes as a &[Self] without copying. Read more
§

fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
where Self: Sized + NoCell,

Interprets the prefix of the given bytes as a &[Self] with length equal to count without copying. Read more
§

fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
where Self: Sized + NoCell,

Interprets the suffix of the given bytes as a &[Self] with length equal to count without copying. Read more
§

fn read_from(bytes: &[u8]) -> Option<Self>
where Self: Sized,

Reads a copy of Self from bytes. Read more
§

fn read_from_prefix(bytes: &[u8]) -> Option<Self>
where Self: Sized,

Reads a copy of Self from the prefix of bytes. Read more
§

fn read_from_suffix(bytes: &[u8]) -> Option<Self>
where Self: Sized,

Reads a copy of Self from the suffix of bytes. Read more
source§

impl FromZeros for INode
where U16: FromZeros, U32: FromZeros, [u8; 4]: FromZeros, [u8; 60]: FromZeros,

§

fn zero(&mut self)

Overwrites self with zeros. Read more
§

fn new_zeroed() -> Self
where Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
source§

impl Unaligned for INode
where U16: Unaligned, U32: Unaligned, [u8; 4]: Unaligned, [u8; 60]: Unaligned,

Auto Trait Implementations§

§

impl Freeze for INode

§

impl RefUnwindSafe for INode

§

impl Send for INode

§

impl Sync for INode

§

impl Unpin for INode

§

impl UnwindSafe for INode

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Encode<Ambiguous1> for T

source§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T> Encode<Ambiguous2> for T

source§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoAny for T
where T: 'static + Send + Sync,

§

fn into_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Cast the given object into a dyn std::any::Any.
source§

impl<T> ParseToStruct for T
where T: FromBytes + NoCell + Unaligned,

source§

fn from_reader_with_offset( reader: &dyn Reader, offset: u64 ) -> Result<Self, ParsingError>

source§

fn to_struct_ref( data: &[u8], error_type: ParsingError ) -> Result<&Self, ParsingError>

Casts the &u8 data to &Self. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more