Replies: 5 comments 19 replies
-
They work exactly as described in the docs. https://github.com/trapexit/mergerfs#policy-descriptions mspmfs (most shared path, most free space) | Search: Same as epmfs. Action: Same as epmfs. Create: like epmfs but walk back the path if it fails to find a branch at that level. |
Beta Was this translation helpful? Give feedback.
-
A filesystem is a tree. A hierarchy. The policy walks back path hierarchy if, due to the setup you've selected, it fails to find anything. mkdir /a/b/c/d/e.txt try to find a branch that fits requirements at /a/b/c/d/... if that fails try /a/b/c/... if that fails /a/b/... if that fails /a/ Walks back the path to find a branch that fits the requirements. |
Beta Was this translation helpful? Give feedback.
-
The "tries all drives" is implied by the fact all policies check all branches and that not looking over all branches would make no sense. It wouldn't change the behavior. You have to look at all branches to compare the relative path at each level. I think you are over thinking the behavior. It's just a filter and sort. If you filter all branches with /a/b/c/d and don't find anything then there isn't anything left to check at /a/b/c. |
Beta Was this translation helpful? Give feedback.
-
But that's not what it does. It literally walks back the path calling epmfs. epmfs on /a/b/c/d returns nothing... do epmfs on /a/b/c... repeat |
Beta Was this translation helpful? Give feedback.
-
I'm not really understanding. It says that already. "like epmfs but walk back the path if it fails to find a branch at that level." epmfs doesn't walk back. So it's like epmfs but walks back the tree. |
Beta Was this translation helpful? Give feedback.
-
just looking for some clarification on non path preserving policies.
will they make any effort to preserve the path?
if not is there a way to have a weak path preserving policy that will preserve it if possible but flow over to another drive if not?
Beta Was this translation helpful? Give feedback.
All reactions