2021.04.24 15:04 "Re: [Tiff] "TIFFAdvanceDirectory": Error fetching directory count .....getting fewer "frames" but still working..", by Bob Friesenhahn
The rename() system call within the same filesystem is normally expected to be atomic. This still does not mean that two clients of a server can not have a differing opinion of the current state.
Some sort of locking beyond whether a file appears to exist or not is likely to be required.
I should also mention that libtiff and its utilities do not invoke fsync() or fdatasync() to force that the data just "written" is forced to underlying store. This is not done since it can be slow to complete.
If the client is using TIFFClientOpen() then it could arrange to do that.
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt