Repository navigation
fix(rustfs): run RustFS from its data directory so the volume has no space - #64
Conversation
There was a problem hiding this comment.
🟢 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
|
Thanks for the PR, @1stevengrant! Pull requests go into |
|
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 ( |
|
@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
2546067 to
d93fac8
Compare
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 |
|
Thanks for the PR! Merged. |
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/1becomes two paths that don't exist and RustFS exits withVolume 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.TestRustFSVolumeHasNoSpacebuilds 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 ondevelopand passes with this change, andFLOCK_CATALOG_INTEGRATION=rustfsnow passes too.