Skip to content

Releases

v1.0.10

Choose a tag to compare

@github-actions github-actions released this 26 Nov 02:15

Fixed

  • Fix d????????? placeholder entries and ENOENT (No such file or directory) on Linux 6.9+ kernels when files or directories exist only on secondary read targets and not on storage_paths[0] (#5).
  • Remove *fs.LoopbackNode embedding from the FUSE Node implementation and return ENOSYS for FUSE_STATX so kernels fall back to PolicyFS's router-aware Getattr instead of probing storage_paths[0] directly.
  • Route Symlink, Readlink, and Mknod (mkfifo) operations through configured write and read targets instead of falling back to the primary storage path.
  • Preserve accurate S_IFMT entry types (symlinks, FIFOs, sockets, and device nodes) when merging non-indexed Readdir results.
  • Fall back to primaryRootPath in statfs fallback_loopback mode when the queried subdirectory does not exist on the primary storage path.

Improved

  • Fix GIT_COMMON_DIR handling in the coverage workflow and Go setup PATH in the RPM release workflow.

Compatibility

  • No configuration migration is required.

Full Changelog: v1.0.9...v1.0.10

v1.0.9

Choose a tag to compare

@github-actions github-actions released this 23 Nov 00:21

Added

  • Add zero-copy cache eviction mode (mode: evict) for mover jobs to reclaim source storage space after verifying a matching replica (IsRegular, equal size, dest.mtime >= src.mtime) exists on at least one destination storage (#8).
  • Report skipped_unmirrored in pfs move and pfs maint summaries when eviction candidates do not yet have a verified replica on destination tiers.

Fixed

  • Preserve existing live directory mode/uid/gid in index.db during UpsertFile and sync newly materialized destination directory metadata in the mover.
  • Apply directory Setattr (chmod/chown/utimens) across all matching read targets instead of stopping at the first branch.
  • Inherit parent permissions, group-write/traverse bits, and setgid when pfs prune creates missing destination parent directories during RENAME.
  • Keep indexed disks asleep during pfs doctor checks.
  • Avoid marking verified destination storages as modified (touched) during pfs maint --index=touch for mode: evict jobs.

Improved

  • Order mover candidates oldest mtime first (tie-broken by largest size first) so recently created files remain cached on fast storage tiers longer.
  • Isolate Docker Compose dev containers per Git worktree with dynamic ports and shared Git metadata.

Compatibility

  • No configuration migration is required (mover.jobs[].mode defaults to move).

Full Changelog: v1.0.8...v1.0.9

v1.0.8

Choose a tag to compare

@github-actions github-actions released this 28 Aug 19:38

Fixed

  • Preserve source ownership and permissions for destination directories created by the mover.
  • Keep newly created mover directories group-writable and traversable while preserving setgid behavior.
  • Leave existing destination directory ownership and permissions unchanged.
  • Reject symlink components while creating destination directory chains.
  • Handle concurrent destination directory creation without failing the move unnecessarily.
  • Surface unexpected rollback failures instead of silently leaving partial directory chains.
  • Recreate writable destination directories correctly after delete_empty_dir removes a source chain.
  • Fall back to another eligible destination when a path_preserving parent is below min_free_gb.

Improved

  • Report clearer write rejection diagnostics when targets are below min_free_gb.
  • Clarify min_free_gb, mover directory metadata, and systemd permission behavior in the documentation.

Compatibility

  • No configuration migration is required.
  • Existing destination directories are not modified.
  • Packaged mover and maintenance services continue to run as root so source UID/GID metadata can be preserved.

Full Changelog: v1.0.7...v1.0.8

v1.0.7

Choose a tag to compare

@github-actions github-actions released this 19 Jun 23:58

Changed

  • Expand debug visibility in the FUSE layer for mutation and indexed open fallback paths.
  • Bump Go toolchain to 1.26.4.

Added

  • Add more debug logs for FUSE mutation flows, including rename, unlink, create, mkdir, link, symlink, setattr, and writable-handle release.
  • Add log coverage for indexed-path open fallback when a stale indexed real_path no longer exists on disk.

Fixed

  • Fix release logging so the error path does not leave an unfinished zerolog event behind.
  • Fix indexed open fallback logs to report the actual fallback path that was opened successfully.
  • Remove misleading real_path fields from symlink logs when the loopback-backed storage path cannot be derived accurately.

Notes for operators

  • To capture the new FUSE traces, run PolicyFS with debug logging enabled:

    log:
      level: debug
  • This release is focused on observability and log accuracy. It does not intentionally change filesystem semantics.

Full Changelog: v1.0.6...v1.0.7

v1.0.6

Choose a tag to compare

@github-actions github-actions released this 17 May 22:53

Fixed

  • Fix lookup/getattr for directories surfaced by readdir from indexed backends or descendant-matching routing rules.
  • Prevent false ENOENT / ls -ld metadata failures (?????????) for visible directories.
  • Preserve first-match read visibility: the fix does not widen file visibility beyond configured read routing.

Verified

  • Add integration coverage for nested FUSE mounts, including:
    • parent/child daemon startup
    • subtree routing through the child mount
    • EXDEV on rename/hardlink across mount boundaries
    • directory shadowing while the child is mounted
    • recovery of the parent view after child unmount
    • independent mount device/statfs behavior
    • concurrent mutations across parent and child mounts

Notes

  • This is a patch release.
  • The main user-facing runtime change is the lookup/getattr fix.
  • Nested mount support is now covered by integration tests; this release mainly strengthens verification rather than introducing a new nested-mount implementation.

Full Changelog: v1.0.5...v1.0.6

v1.0.5

Choose a tag to compare

@github-actions github-actions released this 10 May 01:03

This release focuses on operability and debugging.

Added

  • pfs doctor <mount> <path> now supports --disk to force on-disk stat during file inspection.
  • By default, doctor file inspection now avoids touching physical disks when indexed metadata is already available, which helps prevent unnecessary HDD spin-ups.
  • pfs mount now supports a pprof endpoint for runtime profiling and memory investigations.

Changed

  • Improved doctor file inspection behavior to prefer index-backed results when possible, while still falling back to on-disk stat when no index row exists for a storage.
  • Added troubleshooting and command documentation for doctor disk inspection and mount-time pprof usage.
  • Bumped the Go toolchain to 1.26.3.

Full Changelog: v1.0.4...v1.0.5

v1.0.4

Choose a tag to compare

@github-actions github-actions released this 20 Apr 01:33

Highlights

Improved disk space reporting (for df -h, SMB clients, Finder)

PolicyFS can now report a more intuitive, pooled view of available space for a mount, instead of reflecting a single underlying filesystem.

New per-mount options:

  • mounts.<name>.statfs.reporting
    • mount_pooled_targets (default): mount-wide pooled stats using the union of all write targets across all routing rules
    • path_pooled_targets: path-aware pooled stats using write targets resolved for the queried path
  • mounts.<name>.statfs.on_error
    • Defaults to ignore_failed (existing error policies remain supported)

Docs: https://docs.policyfs.org/config/#statfs

FUSE: more accurate errno propagation

FUSE operations now unwrap and propagate underlying errno more reliably, improving correctness and making failures easier to diagnose.

Added integration coverage:

  • tests/integration/fuse_errno_propagation_test.go

pfs doctor: better visibility into permission issues

pfs doctor now reports recent permission-related errors to help debug "it works for root but not for my apps" situations.

Docs: https://docs.policyfs.org/commands/doctor/


Notes

  • mount_pooled_targets is recommended if you want stable, mount-wide numbers that match user expectations for df/SMB.
  • path_pooled_targets may report different totals between directories by design (it follows routing semantics).

Full Changelog: v1.0.3...v1.0.4

v1.0.3

Choose a tag to compare

@github-actions github-actions released this 12 Apr 09:16
  • Mover
    • Add source.include_file and source.ignore_file for file-based candidate selection (ignore always wins, selection is patterns OR include_file).
    • Add destination.skip_if_exists_any to skip candidates when the destination path already exists on any destination storage (avoids duplicate copies; may increase disk I/O).
  • Doctor
    • Show pool size and annotate storages with mover usage thresholds (threshold_start / threshold_stop) for the first usage-triggered job.
  • Packaging / CI
    • Improve RPM/DEB release workflows: unique repo metadata, install retries, and smoke tests for APT/RPM repos.
    • Rename RPM assets to include distro in the filename (Fedora vs EL9).
  • Docs / Website
    • Add FAQ and refresh configuration/getting-started/troubleshooting content
    • Polish website pages/styles.
  • Tooling
    • Fix formatter/linter to normalize Unicode dashes.
    • Bump Go version to 1.26.2.

Full Changelog: v1.0.2...v1.0.3

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 27 Mar 04:05

Highlights

  • Added RPM packaging and publishing for Fedora and EL9, including a GitHub Pages RPM repository.
  • Updated install docs with dnf instructions using https://repo.policyfs.org/rpm.

Added

  • RPM release workflow: .github/workflows/release-rpm.yml
    • Builds RPMs for Fedora + EL9
    • Signs artifacts and publishes repodata to GitHub Pages
  • RPM spec: packaging/rpm/policyfs.spec
  • RPM packaging script: scripts/package_rpm.sh
  • Fedora/EL9 install instructions: docs/getting-started.md
    • Fedora repo baseurl: https://repo.policyfs.org/rpm/fedora/x86_64
    • EL9 repo baseurl: https://repo.policyfs.org/rpm/el/9/x86_64

Changed

  • README: packaging support now includes Debian/Ubuntu + Fedora/EL9 (linux/amd64).
  • Debian packaging metadata: updated maintainer in packaging/deb/control.in.

Notes

  • Release assets include both:
    • Versioned packages (canonical names)
    • “Latest-friendly” package names for stable download links

Full Changelog: v1.0.1...v1.0.2

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 25 Mar 23:52

Full Changelog: v1.0.0...v1.0.1