hermit-os / hermit-os/kernel

Unhelpful errror message when writing to virtiofs isn't possible.

Open
#2,226 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.5k
Forks
132
Avg merge
1d 14h
Merged PRs (30d)
39

Description

When (absolutely on purpose, of course) setting the `--readonly` flag on virtiofsd, and trying to write to a virtiofs mount, we get a rather unhelpful error message:
```
thread 'main' (1) panicked at src/main.rs:15:49:
called `Result::unwrap()` on an `Err` value: Kind(Uncategorized)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

The fuse response header includes the error code `-30` (Read-only filesystem), but apparently that is not converted correctly here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.