bergware / dynamix

51 stars 38 forks source link

Implement auto-hashing for cache-to-disk moves #79

Closed Torqu3Wr3nch closed 1 year ago

Torqu3Wr3nch commented 1 year ago

Addresses Issue #78:

When the Unraid Mover runs, a partial file is created on the disk. This file.partial is then moved to the original file name on the disk. Therefore, inotifywait does not see the move as a close_write, but rather a moved_to.

I considered the following options:

Note that this hotfix will cause normal moves on the disk (i.e. those using the "mv" command) to trigger a rehash. I expect this side-effect to be minimally impactful. I will address that in a future PR.