commits
Signed-off-by: Maxwell Sylveon Fritz <git@mfzx.net>
Claude Code is struggling a lot with using pdsfs. This is the changes it suggests to make pdsfs actually usable.
---
## Summary
Add daemon mode (`-d` flag) and change foreground mode to use ctrl-c instead of "hit enter".
**Motivation:** The "hit enter to unmount" pattern doesn't work well with scripts or automated tools - stdin may be closed or unavailable. The ctrl-c pattern is more standard for long-running foreground processes.
**Changes:**
- Add `-d`/`--daemon` flag that backgrounds the mount process and exits the parent when the mount is ready (follows the same pattern as `rclone mount --daemon`)
- Change foreground mode from "hit enter" to ctrl-c
- Update readme to reflect new behavior
**Usage:**
```bash
# Foreground (ctrl-c to unmount)
pdsfs oppi.li
# Daemon mode (parent exits when mount is ready)
pdsfs -d oppi.li && ls mnt/
```
The daemon mode uses a Unix socket pair for the child to signal readiness to the parent, with a 120-second timeout.
pdsfs is useful but you have to be a Rust nerd to know how to use it.
I think it is valuable to document how to actually install it if there are no releases
This is easier to browse and should make it more powerful for agent exploration since they can rely on newlines when grepping etc
I often can't get it running because a failure screws up the mount. This is what Claude wrote that seems to fix it.
It wouldn't appear in Finder until I did this. Written by Claude.
Adding a nix flake that perhaps is a little over-engineered for this, but does correctly build and run `pdsfs`. The flake exports a package and devShell, but not an overlay. Optionally can use latest rust using the rust-overlay to build if you want with the nightly-devShell. Only other dependency is flake-utils, but can remove. Haven't tested on any platform other than linux.
supports multiple handles now
Signed-off-by: oppiliappan <me@oppi.li>
Claude Code is struggling a lot with using pdsfs. This is the changes it suggests to make pdsfs actually usable.
---
## Summary
Add daemon mode (`-d` flag) and change foreground mode to use ctrl-c instead of "hit enter".
**Motivation:** The "hit enter to unmount" pattern doesn't work well with scripts or automated tools - stdin may be closed or unavailable. The ctrl-c pattern is more standard for long-running foreground processes.
**Changes:**
- Add `-d`/`--daemon` flag that backgrounds the mount process and exits the parent when the mount is ready (follows the same pattern as `rclone mount --daemon`)
- Change foreground mode from "hit enter" to ctrl-c
- Update readme to reflect new behavior
**Usage:**
```bash
# Foreground (ctrl-c to unmount)
pdsfs oppi.li
# Daemon mode (parent exits when mount is ready)
pdsfs -d oppi.li && ls mnt/
```
The daemon mode uses a Unix socket pair for the child to signal readiness to the parent, with a 120-second timeout.
Adding a nix flake that perhaps is a little over-engineered for this, but does correctly build and run `pdsfs`. The flake exports a package and devShell, but not an overlay. Optionally can use latest rust using the rust-overlay to build if you want with the nightly-devShell. Only other dependency is flake-utils, but can remove. Haven't tested on any platform other than linux.