Skip to content

Conversation

@penberg
Copy link
Collaborator

@penberg penberg commented Dec 22, 2025

The whiteout table created by agentfs init --base was missing the parent_path column that overlayfs.rs queries during directory listing. This caused get_child_whiteouts() to fail with a SQL error, which propagated as an I/O error when running ls on the mounted filesystem.

The fix moves the schema definition to a single location in the SDK (OverlayFS::init_schema) to prevent future drift between CLI and SDK. The CLI now calls this method instead of duplicating the SQL.

Also removes dead base_type code that was set but never read.

Fixes #106

The whiteout table created by `agentfs init --base` was missing the
`parent_path` column that `overlayfs.rs` queries during directory listing.
This caused `get_child_whiteouts()` to fail with a SQL error, which
propagated as an I/O error when running `ls` on the mounted filesystem.

The fix moves the schema definition to a single location in the SDK
(`OverlayFS::init_schema`) to prevent future drift between CLI and SDK.
The CLI now calls this method instead of duplicating the SQL.

Also removes dead `base_type` code that was set but never read.

Fixes #106
@penberg penberg merged commit d7e8f05 into main Dec 22, 2025
33 checks passed
@penberg penberg deleted the whiteout-fix branch December 22, 2025 14:15
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.

agentfs mount I/O error with overlay

2 participants