How to avoid crossing different file systems when moving files? #1376
-
For general questions and support please use GitHub Discussions or Discord. How to keep the files in their original file system when moving files on the merge fs mount point? Moving files does not involve an increase in space usage, but the allocation strategy of merges will still be executed. I use merges as the primary file system for NAS, and performance is not very important to me. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
You need to provide actual details to your question. There is no such thing as "move". |
Beta Was this translation helpful? Give feedback.
-
In other words, can't the underlying layer distinguish between “create” and “move”? When nextcloud puts a file into the recycle bin and version control, a new path will be created, resulting in an unexpected cross-file system, which takes a long time to process. It seems that this situation may also occur when samba puts a file into the recycle bin. |
Beta Was this translation helpful? Give feedback.
-
I'm sorry for not being able to provide more useful information. mount command info:
mount options
branchs is Btrfs |
Beta Was this translation helpful? Give feedback.
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 …