- moveonenospc copied from the branch stored when the file was opened,
which a move never updates, so a second ENOSPC on the same handle
tried to copy a path that no longer existed. Find the source branch
from the fd's device and inode at the start of each move, trying the
stored branch first. No match leaves the write's ENOSPC in place.
- The source branch was dropped from the create policy's result, so a
policy returning one branch (ff, mfs, lfs, lus, pfrd) left nothing
when it picked the source, and a destination that was the source by
another path (bind mount) was renamed over the file and unlinked.
Remove every alias of the source before the policy runs, so it picks
another branch; with no candidate left the move is refused.
- Refuse relocation if a duplicate on another branch could become
visible once the source is removed, and publish without replacing a
destination that appeared meanwhile. When the no-replace rename is
unsupported, publish with link(); a staging name that cannot be
removed afterwards is logged instead of silently left behind.
- Ask the create policy by the parent directory, as create does. The
existing-path policies and newest only pick a branch that has the
path they are given, and the destination has the directory but not
the file yet.
- TEST_movefile_enospc moves a handle twice and checks duplicates
through the pool. tests.cpp covers the source by its own path and an
alias, and every existing-path policy for nested and root files.
- Restore source permissions after ownership to preserve setgid and clear unwanted inherited mode bits.
- Add regression coverage for directory modes, group inheritance, and existing destination directories.
- Update the branch configuration test to use the current API.
- Document metadata preservation when cloning directory paths.
- Stop parent traversal after evaluating the empty relative root.
- Preserve filtering errors, parent fallback, and closest-path selection.
- Cover all four MSP policies with rejection and fallback regressions.
- Document errors when traversal exhausts the branch root.
Run in an elevated credential mode (root) and let the kernel manage
entitlements. Will result in slightly different behavior but should
not be noticed by most.
* Use concurrent_flat_map to build a global cache rather than per
thread.
* Create global maintanence thread manager for clearing unused cache
entries.
* category.create=pfrd
* moveonenospc=pfrd
* cache.files=off
* parallel-direct-writes=true
These changes were made to match the recommended settings for most
users to reduce confusion.