[FUSE] Complete Error to Errno mapping for filesystem mounts #18

Open
opened 2026-02-14 21:21:27 +00:00 by thabeta · 0 comments
Owner

The Error enum in src/error.rs provides a to_errno() method for FUSE compatibility, but many variants return a generic EIO or are incorrectly mapped.

Issue: Users mounting the FS via FUSE see deceptive error messages (e.g., IO Error when it is actually Permission Denied).

Proposed Fix: Map specific error variants (like missing files or storage limits) to their appropriate libc counterparts (ENOENT, EDQUOT, EACCES, etc.).

The `Error` enum in `src/error.rs` provides a `to_errno()` method for FUSE compatibility, but many variants return a generic `EIO` or are incorrectly mapped. **Issue:** Users mounting the FS via FUSE see deceptive error messages (e.g., IO Error when it is actually Permission Denied). **Proposed Fix:** Map specific error variants (like missing files or storage limits) to their appropriate `libc` counterparts (ENOENT, EDQUOT, EACCES, etc.).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geomind_code/my_fs#18
No description provided.