#[non_exhaustive]pub enum Ext4Error {
}
Expand description
Common error type for all Ext4
operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotAbsolute
An operation that requires an absolute path was attempted on a relative path.
NotASymlink
An operation that requires a symlink was attempted on a non-symlink file.
NotFound
A path points to a non-existent file.
IsADirectory
An operation that requires a non-directory path was attempted on a directory path.
NotADirectory
An operation that requires a directory path was attempted on a non-directory path.
IsASpecialFile
An operation that requires a regular file (or a symlink to a regular file) was attempted on a special file (fifo, character device, block device, or socket).
FileTooLarge
The file cannot be read into memory because it is too large.
NotUtf8
Data is not valid UTF-8.
MalformedPath
Data cannot be converted into a valid path.
PathTooLong
Path is too long.
Maximum path length is not strictly enforced by this library for all paths, but during path resolution the length may not exceed 4096 bytes.
TooManySymlinks
Path could not be resolved because it contains too many levels of symbolic links.
Encrypted
Attempted to read an encrypted file.
Only unencrypted files are currently supported. Please file an issue if you have a use case for reading encrypted files.
Io(Box<dyn Error + Send + Sync + 'static>)
An IO operation failed. This error comes from the Ext4Read
passed to Ext4::load
.
Incompatible(Incompatible)
The filesystem is not supported by this library. This does not indicate a problem with the filesystem, or with the calling code. Please file a feature request and include the incompatible features.
Corrupt(Corrupt)
The filesystem is corrupt in some way.