Skip to content

Remove use of /tmp on Linux for shared memory and cleanup - #165

Merged
dallison merged 1 commit into
mainfrom
fix-linux-no-tmp
Nov 22, 2026
Merged

dallison merged 1 commit into
mainfrom
fix-linux-no-tmp

Conversation

@dallison

Copy link
Copy Markdown
Owner

Summary

  • Mint Linux (SUBSPACE_SHMEM_MODE_LINUX) control-block shared memory names directly in /dev/shm instead of /tmp in CreateSharedMemory, so minimal Linux container rootfses without /tmp work out of the box.
  • Remove /tmp directory_iterator scans from Linux Server::CleanupAfterSession and Server::CleanupFilesystem, and pass std::error_code to /dev/shm scans.
  • Place split-buffer metadata files in /dev/shm/ when BufferSharedMemoryName returns a relative /dev/shm name on Linux (C++ and Rust clients), and clean them up during Linux session cleanup.
  • Bump MODULE.bazel version to 3.4.4.

Test Plan

  • bazel test //server:server_test //client:client_test //common:split_buffer_test //rust_client/...

@dallison
dallison merged commit 3c33e95 into main Nov 22, 2026
52 checks passed
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