Skip to content

fix(rustfs): run RustFS from its data directory so the volume has no space - #64

Merged
lukas-frey merged 1 commit into
flock-php:mainfrom
1stevengrant:fix/rustfs-volume-spaces
Nov 4, 2026
Merged

lukas-frey merged 1 commit into
flock-php:mainfrom
1stevengrant:fix/rustfs-volume-spaces

Conversation

@1stevengrant

Copy link
Copy Markdown
Contributor

Fixes #62

What and why

RustFS never starts on macOS. Flock passes the absolute data directory as RustFS's volume, and RustFS splits its volume arguments at spaces, so ~/Library/Application Support/Flock/services/rustfs/data/1 becomes two paths that don't exist and RustFS exits with Volume not found.

Flock now runs RustFS from inside its data directory (Dir: p.Data, as Meilisearch and MongoDB already do) and passes . as the volume, so there's no space left to split. Existing data stays where it is, since it's the same directory addressed relatively.

TestRustFSVolumeHasNoSpace builds the spec under a root containing "Application Support" and checks that the volume has no space and still resolves to the data directory. It fails on develop and passes with this change, and FLOCK_CATALOG_INTEGRATION=rustfs now passes too.

@onairmarc
onairmarc requested review from lukas-frey and a balanced review from Copilot October 25, 2026 15:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused fix preserves the data location, uses existing working-directory support, and includes targeted regression coverage.

No open issues 🎉

What changed in this PR

Fixes #62 by running RustFS from its data directory and passing . as the volume, avoiding startup failures caused by spaces in macOS paths while preserving existing data.

Changes:

  • Sets RustFS’s working directory to its data directory.
  • Adds regression coverage for space-containing paths in macOS and Windows specifications.
File Description
internal/​catalog/​kinds.go Uses the data directory as RustFS’s working directory and . as its volume.
internal/​catalog/​catalog_test.go Checks that the volume contains no spaces and resolves to the original data directory.

Review effort: Balanced

@lukas-frey
lukas-frey deleted the branch flock-php:develop October 29, 2026 20:54
@lukas-frey lukas-frey closed this Oct 29, 2026
@lukas-frey lukas-frey reopened this Oct 29, 2026
@lukas-frey
lukas-frey changed the base branch from develop to main October 29, 2026 20:56
@github-actions

Copy link
Copy Markdown

Thanks for the PR, @1stevengrant! Pull requests go into develop, not main, so this one is closed. Please open a new one against develop. See CONTRIBUTING.md.

@github-actions github-actions Bot closed this Oct 29, 2026
@lukas-frey lukas-frey reopened this Oct 30, 2026
@khanalpride

Copy link
Copy Markdown

Hi! Is there an estimated timeline for merging this fix and including it in a release? I'm running Flock 1.0.0 on macOS and hitting the RustFS startup failure described in #62 (Volume not found due to the space in Application Support). Thanks!

@onairmarc

Copy link
Copy Markdown
Member

@1stevengrant Looks like we have some CI failures. Can you please take a look.

…space

RustFS splits its volume arguments at spaces, so the absolute data
directory under ~/Library/Application Support became two volumes that
don't exist and RustFS exited with "Volume not found". It now runs
from the data directory and is given "." as its volume.

Fixes flock-php#62
@1stevengrant
1stevengrant force-pushed the fix/rustfs-volume-spaces branch from 2546067 to d93fac8 Compare November 3, 2026 04:39
@onairmarc

Copy link
Copy Markdown
Member

Hi! Is there an estimated timeline for merging this fix and including it in a release? I'm running Flock 1.0.0 on macOS and hitting the RustFS startup failure described in #62 (Volume not found due to the space in Application Support). Thanks!

I want to have this out within the next day or two. Just need to coordinate a new release. Once it's released, an update should appear within the Flock UI

@onairmarc
onairmarc enabled auto-merge November 3, 2026 04:51
@lukas-frey
lukas-frey merged commit 8b63364 into flock-php:main Nov 4, 2026
16 checks passed
@lukas-frey

Copy link
Copy Markdown
Member

Thanks for the PR! Merged.

@onairmarc onairmarc added this to the v1.1.0 milestone Nov 7, 2026
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.

RustFS never starts on macOS: "Volume not found" because the data path contains a space

5 participants