#[non_exhaustive]pub enum InodeFormat {
Dev,
Local,
Extents,
Btree,
Other(u8),
}Expand description
The data-fork format selector (di_format / di_aformat).
P3/P4 branch on this to interpret the fork: InodeFormat::Local is inline
data (short-form dir / symlink), InodeFormat::Extents is an inline
xfs_bmbt_rec array, InodeFormat::Btree is an inline bmap-btree root.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dev
XFS_DINODE_FMT_DEV (0) — device number in the fork.
Local
XFS_DINODE_FMT_LOCAL (1) — inline data (short-form dir / symlink).
Extents
XFS_DINODE_FMT_EXTENTS (2) — inline xfs_bmbt_rec extent array.
Btree
XFS_DINODE_FMT_BTREE (3) — inline bmap-btree root header.
Other(u8)
Any other value (e.g. 5 = the unused UUID format) — carried verbatim so
an unrecognized selector shows its value rather than being coerced.
Implementations§
Trait Implementations§
Source§impl Clone for InodeFormat
impl Clone for InodeFormat
impl Copy for InodeFormat
Source§impl Debug for InodeFormat
impl Debug for InodeFormat
impl Eq for InodeFormat
Source§impl PartialEq for InodeFormat
impl PartialEq for InodeFormat
impl StructuralPartialEq for InodeFormat
Auto Trait Implementations§
impl Freeze for InodeFormat
impl RefUnwindSafe for InodeFormat
impl Send for InodeFormat
impl Sync for InodeFormat
impl Unpin for InodeFormat
impl UnsafeUnpin for InodeFormat
impl UnwindSafe for InodeFormat
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
Mutably borrows from an owned value. Read more