|
|
|
|
|
by karlicoss
1627 days ago
|
|
Cool tool, but recommend reading the policies [0] section carefully, it did catch me off guard the first time I tried using it. E.g. say you have /a/foo.txt and /b/foo.txt, and you run mergerfs /a:/b /merged Now if you print or modify /merged/foo.txt, it would access /a/foo.txt because the default policy for file access is ff (first-found, as defined during the mount). However, if you run "rm /merged/foo.txt", it would delete it from both /a and /b, because the default policy for unlink call would be "epall" (existing path, apply to all). [0] https://github.com/trapexit/mergerfs#policy-descriptions |
|
I think the behaviour makes sense. Otherwise deleting a shadowed file either requires extra state (to track whether to show the shadowed file after a deletion), or loses some of the implicit assumptions people make for filesystems (after I successfully rm, the file is gone).