readonly upper branch and read/write lower branch #1101
-
Hello, I'm trying to understand if MergerFS is suitable for my use case, my initial testing has proved unsuccessful but I may not be setting all the appropriate configuration to achieve my goal - or MergerFS is not intended for my use case. The use case: I've attempted the following: mkdir readonly readwrite merged
echo "hello" > readonly/file.txt
echo "hello" > readwrite/file.txt
mergerfs -o allow_other,use_ino /tmp/readonly=RO:/tmp/readwrite=RW /tmp/merged
echo "world" >> merged/file.txt
cat merged/file.txt
# hello
# world
cat readonly/file.txt
# hello
# world
cat readwrite/file.txt
# hello Firstly, this seems odd to me as the cat merged/file.txt
# hello
cat readonly/file.txt
# hello
cat readwrite/file.txt
# hello
# world It may seem counter-intuitive to want the merged path to show the old contents but another process is in charge of syncing the changes to the readonly filesystem, so they would eventually become available. Is what I'm hoping to achieve possible with MergerFS? I've had a brief look at the policies and tried some variations but to no avail, all of the below produce the same results: mergerfs -o allow_other,use_ino,category.search=ff,category.create=ff,category.action=ff /tmp/readonly=RO:/tmp/readwrite=RW /tmp/merged
mergerfs -o allow_other,use_ino,category.search=ff,category.create=all,category.action=all /tmp/readonly=RO:/tmp/readwrite=RW /tmp/merged
mergerfs -o allow_other,use_ino,category.search=ff,category.create=newest,category.action=newest /tmp/readonly=RO:/tmp/readwrite=RW /tmp/merged
mergerfs -o allow_other,use_ino,category.search=ff,category.create=epff,category.action=epff /tmp/readonly=RO:/tmp/readwrite=RW /tmp/merged Some system details: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
https://github.com/trapexit/mergerfs#how-it-works
|
Beta Was this translation helpful? Give feedback.
https://github.com/trapexit/mergerfs#how-it-works