Skip to content

feat: Filesystem implementation for blobstore & keyvalue#233

Merged
lxfontes merged 5 commits intomainfrom
lxfontes/filesystems
Jan 15, 2026
Merged

feat: Filesystem implementation for blobstore & keyvalue#233
lxfontes merged 5 commits intomainfrom
lxfontes/filesystems

Conversation

@lxfontes
Copy link
Member

Selects in-memory vs filesystem based on wash config value.
See blobby & http-counter wash config for example usage.

Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
@lxfontes lxfontes requested a review from a team as a code owner January 15, 2026 00:44
Comment on lines +5 to +7
dev:
wasi_blobstore_path: tmp/blobstore
wasi_keyvalue_path: tmp/keyvalue
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here


fn list_files_recursively(path: impl AsRef<Path>, files: &mut Vec<PathBuf>) -> anyhow::Result<()> {
// Read the entries in the current directory
for entry_result in std::fs::read_dir(path)? {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider making this async with tokio::fs::read_dir(path) and #[async_recursion]. IMO If it becomes a problem, that's when we should reconsider the impl here

Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
@lxfontes lxfontes added this pull request to the merge queue Jan 15, 2026
Merged via the queue into main with commit 4dc1390 Jan 15, 2026
9 checks passed
@lxfontes lxfontes deleted the lxfontes/filesystems branch January 15, 2026 19:29
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.

2 participants