From 83194263fc86196888bedb71ddeee95c711a0b3a Mon Sep 17 00:00:00 2001 From: "claude[bot]" Date: Sat, 7 Feb 2026 02:31:15 +0000 Subject: [PATCH] fix: keep slirp stderr piped for error diagnostics, fix e2fsck signal default, remove stale README ref MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- README.md | 1 - src/network/slirp.rs | 2 +- src/storage/disk.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 817814cb..0fa3cf85 100644 --- a/README.md +++ b/README.md @@ -875,7 +875,6 @@ See [DESIGN.md](DESIGN.md#guest-agent) for details. | `RUST_LOG` | `warn` | Logging level (quiet by default; use `info` or `debug` for verbose) | | `FCVM_NO_SNAPSHOT` | unset | Set to `1` to disable automatic snapshot creation (same as `--no-snapshot` flag) | | `FCVM_NO_WRITEBACK_CACHE` | unset | Set to `1` to disable FUSE writeback cache (see below) | -| `FCVM_NO_XATTR_FASTPATH` | unset | Set to `1` to disable security.capability xattr fast path | ### FUSE Writeback Cache diff --git a/src/network/slirp.rs b/src/network/slirp.rs index 371d77dd..53bc382c 100644 --- a/src/network/slirp.rs +++ b/src/network/slirp.rs @@ -344,7 +344,7 @@ ip addr add {namespace_ip}/24 dev {bridge} .arg(&self.slirp_device) .stdin(Stdio::null()) .stdout(Stdio::null()) - .stderr(Stdio::null()); + .stderr(Stdio::piped()); let child = cmd.spawn().context("failed to spawn slirp4netns")?; diff --git a/src/storage/disk.rs b/src/storage/disk.rs index cedf2ac5..4829aaa9 100644 --- a/src/storage/disk.rs +++ b/src/storage/disk.rs @@ -204,7 +204,7 @@ pub async fn ensure_free_space( // e2fsck exit codes: 0=clean, 1=corrected, 2=corrected+reboot needed // Exit code >= 4 means uncorrected errors - if e2fsck_output.status.code().unwrap_or(1) >= 4 { + if e2fsck_output.status.code().unwrap_or(8) >= 4 { bail!( "e2fsck found uncorrectable errors: {}", String::from_utf8_lossy(&e2fsck_output.stderr)