Skip to content

How to avoid crossing different file systems when moving files? #1376

Answered by trapexit
Gloryandel asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know what you're trying to get across. There is no such thing as "move" or "copy". There is only rename(from,to) and open/create(target). That's it. There is no such thing as "move(from,to)" or "copy(from,to)". You've set a path preserving policy so on rename it won't create paths and when it chooses to copy the file I have no way to know what is going on. There is just an "open(from)" that might not even come from mergerfs and a "open(to)" that is entirely and totally separate. There is no real way to correlate them. Even if I scanned every file opened by the client program (which would be extremely expensive) and tried to compare it to what is being is being created ... what is …

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@trapexit
Comment options

Comment options

You must be logged in to vote
5 replies
@trapexit
Comment options

@Gloryandel
Comment options

@trapexit
Comment options

Answer selected by Gloryandel
@Gloryandel
Comment options

@trapexit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #1375 on November 28, 2024 16:28.