bergware / dynamix

51 stars 38 forks source link

File Integrity Plugin - Files Moved from the Cache to Disk Are Not Handled By "Automatically protect new and modified files" #78

Open Torqu3Wr3nch opened 1 year ago

Torqu3Wr3nch commented 1 year ago

Just as the title says. Files written to the cache are not handled by the "Automatically protect new and modified files" feature when they are moved to disk.

This is because, when the Unraid Mover runs, a partial file is created on the disk. After the move is complete, 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 have tested and fixed this on my dev server. PR inbound.