Merge of directory level #1286
Replies: 9 comments 15 replies
-
No. It does not support that. If something isn't described in the documentation is doesn't exist. What is the usecase? The whole point of the software is to create a union of the content. Why do you want it not to? |
Beta Was this translation helpful? Give feedback.
-
For me it would be necessary that the files in branch1 are "more wanted" than the files in branch2.... SO I do't want to see these files from branch2... The missing files in branch2 are wanted. I want this so, media with a higher quality is not mixed with media from in a lower quality in branch 2. Does that make sense? |
Beta Was this translation helpful? Give feedback.
-
Not exactly. Why not just delete the file or move it outside the location of the service scanning those paths? How would mergerfs know which directory to include in the readdir? You want a union of all branches but with only ever 1 directory's content? That doesn't really work as a blanket rule. It would fail immediately. The root path is naturally shared across all branches. |
Beta Was this translation helpful? Give feedback.
-
You could make branch dominant of the other.... If the dominant branch has the "dir1" then this is in the result of the merge.... in favor of branch2. |
Beta Was this translation helpful? Give feedback.
-
Can’t you say:
If directory exist in dominant branch then this shown in favor of branch2
If directory does not exist in dominant branch, then the version of branch2 is shown (if it exists there).
So the merged directory is still the sum of dirs in both branches.. only for dirs that do not exist in both branches...
plus the dirs that are in the dominant branch if they exist in both branches
… Op 8 dec 2023, om 15:48 heeft trapexit ***@***.***> het volgende geschreven:
Yes, but what is that algorithm? mergerfs has policies for many things. You need to clearly define how it would choose.
—
Reply to this email directly, view it on GitHub <#1286 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABMFKPEARIJV5L2J4L5B3N3YIMSENAVCNFSM6AAAAABAMX6JE6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMBQGU2TM>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
I was thinking. in only a master and a slave. so two branches not a bunch of them
SO this feature will only work with 2 branches. a master and a slave.
…On 8 dec 2023 16:00 +0100, trapexit ***@***.***>, wrote:
I never said it wasn't possible. I'm asking you to define your algorithm for it to work.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It seems so Trapexit… I will find another way for my needs, Thanks for thinking with me in this matter.
Succes with Mergerfs!!!
… Op 8 dec 2023, om 16:17 heeft trapexit ***@***.***> het volgende geschreven:
You need to understand that every function in mergerfs has it's own policy and behavior. This is what I was saying above. Just because you list (or don't list) something doesn't mean anything with regard to opening that same file path. What you seem to talk about is only the readdir behavior. Which is fine... but it isn't the whole story. And even just for readdir their would need to be very specific details about your expected behavior. How would you choose what to present given a list of branches? First one found? One with the most files in it? WIth the biggest files? There are a bunch of information to make the decision and existing policies for other functions use some of them.
—
Reply to this email directly, view it on GitHub <#1286 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABMFKPFTGKQPQPWKSKRGWSLYIMVSFAVCNFSM6AAAAABAMX6JE6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQMBQHA4DK>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
I will Trapexit... have a great weekend!
…On 8 dec 2023 16:36 +0100, trapexit ***@***.***>, wrote:
If you don't find a good way to do it otherwise feel free to come back and we can discuss further.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have it fixed now with overlayfs.... working like a charm
…On 8 dec 2023 16:36 +0100, trapexit ***@***.***>, wrote:
If you don't find a good way to do it otherwise feel free to come back and we can discuss further.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, I would like mergerfs to omnit merging a directory if a directory with the same name exists in the second branch.
For example.
brach1
/--dir1--file1
| file2
|-- dir2
branch2
/--dir1--file3
|
|--dir3
wil add up to:
result:
/--dir1--file1
| file2
|-- dir2
|--dir3
So dir1--file3 from branch2 is not in the result.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions