Skip to content

fix(e2fs): decode libext2fs errors with Ext2Code - #59

Merged
gitctrlx merged 1 commit into
qntx:mainfrom
JingMox:fix/56-libext2fs-error-mapping
Aug 14, 2026
Merged

fix(e2fs): decode libext2fs errors with Ext2Code#59
gitctrlx merged 1 commit into
qntx:mainfrom
JingMox:fix/56-libext2fs-error-mapping

Conversation

@JingMox

@JingMox JingMox commented Aug 13, 2026

Copy link
Copy Markdown
Member

Description

Fix incorrect libext2fs error-code descriptions by replacing the raw offset-based table with a type-safe Ext2Code enum.

Changes

  • Add Ext2Code to classify libext2fs errors and bare host errno values.
  • Correct error descriptions against ext2_err.h from e2fsprogs 1.47.1.
  • Decode errors once in check() instead of exposing raw i64 codes.
  • Update mkdir_p to match Ext2Code::DirExists.
  • Export Ext2Code from bux-e2fs.
  • Add unit tests for decoding, round-tripping, and error display.

Closes #56

@gitctrlx
gitctrlx merged commit bbd1268 into qntx:main Aug 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: error.rs maps 19 of 20 libext2fs error codes to the wrong description

2 participants