tardezyx Posted April 22, 2021 Share Posted April 22, 2021 (edited) Hi, I got two shares on an Unraid server: - "download": included all disks - "media": included all disks So, I assumed that if I move files between them it would be instantly as both shares are on the exactly same drives nothing physically has to be moved - only the pointer. This works as expected if I move the files within the Unraid terminal in Midnight Commander. But this does not work as expected if I move the files within Windows in Total Commander. Here, it really copies the files to the new location and removes the old ones. Is this behaviour normal or can I somehow fix this? Edited April 22, 2021 by tardezyx issue solved: add SMB rootshare Quote Link to comment
Squid Posted April 22, 2021 Share Posted April 22, 2021 It's normal, and can be replicated on every OS out there. Here's how this works. The OS (in this case Windows) attempts to do a rename. This fails (because your cannot rename from \\media\,,, to \\downloads\... the same way that you cannot rename from C:\... to D:\...), so it has to do a copy / delete operation. MC operates below the system, and because of that it does succeed in the renaming, so it's instantaneous. To work around this what you need to do is set up a "root share" (space invader one has a video about that). Then the mount points are the same and you're renaming instead of copying / deleting, because you're going from \\rootshare\media to \\rootshare\downloads) There are some caveats with that however. If you did have include / exclude disks or use cache settings different between the two shares, then the renamed file may wind up on the wrong disk (it'll actually stay on the source disk) in apparent violation of the rules, but it's actually not a violation because you're bypassing the system 1 Quote Link to comment
tardezyx Posted April 22, 2021 Author Share Posted April 22, 2021 Thanks a lot - I've found the video: Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.