Skip to content

Fix virtiofs deleted-file revalidation, offline kiri domains, netns takeover, 429 manifest retries, and WSL storage/context (#190, #269, #399, #744) - #1002

Merged
libracoder merged 2 commits into
mainfrom
fix/rc023-gate-fixes
Nov 27, 2026
Merged

libracoder merged 2 commits into
mainfrom
fix/rc023-gate-fixes

Conversation

@libracoder

Copy link
Copy Markdown
Owner

Summary

  • macOS virtiofs deleted-file revalidation (#399): Revalidate cached positive leaf dentries on LOOKUP_CREATE for caller_owner virtiofs mounts, drop & invalidate stale dentries returning -EOPENSTALE when fuse_do_open receives -ENOENT/-ESTALE so VFS retries cleanly via LOOKUP_REVAL, wake kiri-watch immediately on Mac bind starts, and retain recently unmounted bind sources for 3 s across back-to-back docker run --rm -v gaps. Also fix recursive global p clobbering in guest/kernel/build.sh patch unapply.
  • Offline kiri domains set & reset (#744): Allow kiri domains set and kiri domains reset (including --json) to update/reset domains.json offline when the daemon is stopped (including /var/lib/kiri-daemon/.kiri/domains.json for Linux's kiri.service, and without auto-starting the daemon on Windows via wsl.rs), while keeping kiri domains reporting a clear daemon-not-running message.
  • Linux netns lock takeover after stuck container start: When net::claim_host_netns() hits EADDRINUSE and this data directory's own agent.lock is held (e.g., by a frozen container child left behind when the previous kiri-init died before closing inherited fds), run take_over + cgroup sweep for this data directory before retrying claim_host_netns(), preserving #443 isolation when another engine owns a separate data directory.
  • Transient registry 429 manifest retries: Retry transient(&e) (HTTP 429, 408, 5xx, and transient I/O) in Client::manifest_with with bounded exponential backoff, matching blob downloads.
  • WSL storage usage & Docker context hash (#190, #269): Subtract f_bfree instead of f_bavail in statvfs_usage so ext4's 5% root-reserved free blocks on sparse ext4.vhdx disks are not counted as used space, and fix KIRI_CONTEXT_HASH in wslsync.rs to match sha256("kiri").
  • Linux host & E2E test suite fixes: Align DEFAULT_NS in tests/e2e.sh with transport.rs::host_dns for 127.0.0.53, restrict hostnet-published-localhost (-p 127.0.0.1:...) to macOS, avoid mv EBUSY on bind-mounted /etc/resolv.conf in tests/linux-host.sh, use curl -v to assert EACCES across curl versions, and avoid trailing newline in systempaths-symlink-escape.

@libracoder
libracoder merged commit ae433de into main Nov 27, 2026
14 checks passed
@libracoder
libracoder deleted the fix/rc023-gate-fixes branch November 27, 2026 23:34
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.

1 participant