Closed lavdnone closed 6 years ago
could you please describe your actual use case? thanks...
Here https://github.com/trapexit/mergerfs/issues/502 Lower posts probably most descriptive
Made changes to separate reads and writes to ro and rw layers, but at the end fuse overhead ate all possible benefits as I have lots of mv ops.
After purging whiteouts logic and setting two strict branches rw and ro, it actually works with no overhead. Put it in to test production on email servers with GlusterFS back-ends. So my writes go in to the cluster through network and reads from site's local brick, getting almost local fs read speeds. @rpodgorny thank you for your work and clean code!
Lets say we have:
unionfs-fuse -o copydown,allow_other /home/username/up=RW:/home/username/low=RW /storage/
If file is saved or changed onup
gets automatically copied down tolow
(the opposite of standard behavior as if file was opened fromlow
and gets saved toup
overlay)or even with first tree being RO:
unionfs-fuse -o savefirstrw,allow_other /home/username/up=RO:/home/username/low=RW /storage/
When file opened from ROup
, gets saved automatically tolow
(as iflow
was on the first position in standard behavior) So all saved files that exist on firstup
are not shown changed at union location but saved versions reside at real location oflow