pub enum Corrupt {
Show 14 variants
SuperblockMagic,
SuperblockChecksum,
TooManyBlockGroups,
BlockGroupDescriptor(u32),
BlockGroupDescriptorChecksum(u32),
InodeChecksum(u32),
Inode(u32),
SymlinkTarget(u32),
ExtentMagic(u32),
ExtentChecksum(u32),
ExtentDepth(u32),
ExtentNotEnoughData(u32),
DirBlockChecksum(u32),
DirEntry(u32),
}Expand description
Error type used in Ext4Error::Corrupt when the filesystem is
corrupt in some way.
Variants§
SuperblockMagic
Superblock magic is invalid.
SuperblockChecksum
Superblock checksum is invalid.
TooManyBlockGroups
The number of block groups does not fit in a u32.
BlockGroupDescriptor(u32)
Invalid block group descriptor.
BlockGroupDescriptorChecksum(u32)
Block group descriptor checksum is invalid.
InodeChecksum(u32)
An inode’s checksum is invalid.
Inode(u32)
An inode is invalid.
SymlinkTarget(u32)
The target of a symlink is not a valid path.
ExtentMagic(u32)
An extent’s magic is invalid.
ExtentChecksum(u32)
An extent’s checksum is invalid.
ExtentDepth(u32)
An extent’s depth is greater than five.
ExtentNotEnoughData(u32)
Not enough data is present to read an extent node.
DirBlockChecksum(u32)
A directory block’s checksum is invalid.
DirEntry(u32)
A directory entry is invalid.
Trait Implementations§
source§impl PartialEq for Corrupt
impl PartialEq for Corrupt
impl Eq for Corrupt
impl StructuralPartialEq for Corrupt
Auto Trait Implementations§
impl Freeze for Corrupt
impl RefUnwindSafe for Corrupt
impl Send for Corrupt
impl Sync for Corrupt
impl Unpin for Corrupt
impl UnwindSafe for Corrupt
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)