- Removed
Ext4Error::as_corrupt
andExt4Error::as_incompatible
. - Renamed
Incompatible::Missing
toIncompatible::MissingRequiredFeatures
. - Renamed
Incompatible::Incompatible
toIncompatible::UnsupportedFeatures
. - Removed
Incompatible::Unknown
; these errors are now reported asIncompatible::UnsupportedFeatures
. - Removed
Incompatible::DirectoryEncrypted
and replaced it withExt4Error::Encrypted
. - Removed
impl From<Corrupt> for Ext4Error
andimpl From<Incompatible>> for Ext4Error
. - Made the
Incompatible
type opaque. It is no longer possible tomatch
on specific types of incompatibility. - Implemented several path conversions for non-Unix platforms that were
previously only available on Unix. On non-Unix platforms, these
conversions will fail on non-UTF-8 input.
TryFrom<&OsStr> for ext4_view::Path
TryFrom<&std::path::PathBuf> for ext4_view::Path
TryFrom<OsString> for ext4_view::PathBuf
TryFrom<std::path::PathBuf> for ext4_view::PathBuf
- Added
Path::to_str
andPathBuf::to_str
. - Added
Ext4::label
to get the filesystem label. - Added
Ext4::uuid
to get the filesystem UUID. - Made the
Corrupt
type opaque. It is no longer possible tomatch
on specific types of corruption.
- Added
File
type andExt4::open
. This can be used to read parts of files rather than reading the whole file at once withExt4::read
. If thestd
feature is enabled,File
implsRead
andSeek
. - Added
impl From<Ext4Error> for std::io::Error
. - Added
impl From<Corrupt> for Ext4Error
. - Added
impl From<Incompatible> for Ext4Error
. - Made
BytesDisplay
public. - Made the library more robust against arithmetic overflow.
- Fixed a panic when loading an invalid superblock.
- MSRV increased to
1.81
. - The error types now unconditionally implement
core::error::Error
. - The
IoError
trait has been removed.Ext4Read::read
now returnsBox<dyn Error + Send + Sync + 'static>
, and that same type is now stored inExt4Error::Io
.