pub enum InodeDataLayout {
FlatPlain,
CompressedFull,
FlatInline,
CompressedCompact,
}Expand description
The layout of the data portion of the inode.
Variants§
FlatPlain
The data union is interpreted as a block address. The data for this inode is stored in consecutive blocks starting from that block address.
CompressedFull
Compressed inode with non-compact indexes. This is a legacy metadata layout, by default erofs images use CompressedCompact for compressed nodes.
FlatInline
The data union is interpreted as a block address. The data for this inode is stored in consecutive blocks starting from that block address, except for the tail of the data which is stored immediately following this metadata. If the whole tail is inlined, the data union is unused and doesn’t matter. For this to be used, the data must have a tail section that fits within the current metadata block.
CompressedCompact
Compressed inode with compact indexes.
Trait Implementations§
Source§impl Clone for InodeDataLayout
impl Clone for InodeDataLayout
impl Copy for InodeDataLayout
Source§impl Debug for InodeDataLayout
impl Debug for InodeDataLayout
impl Eq for InodeDataLayout
Source§impl PartialEq for InodeDataLayout
impl PartialEq for InodeDataLayout
impl StructuralPartialEq for InodeDataLayout
Auto Trait Implementations§
impl Freeze for InodeDataLayout
impl RefUnwindSafe for InodeDataLayout
impl Send for InodeDataLayout
impl Sync for InodeDataLayout
impl Unpin for InodeDataLayout
impl UnsafeUnpin for InodeDataLayout
impl UnwindSafe for InodeDataLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more