Can't thank you enough.. the return value addressed in the github link
is indeed the culprit.
Paul Eggert wrote:
John Stanley wrote:
perhaps the issue is related to the RENAME_NOREPLACE flag
My guess is that you have a fuse callback that's returning a positive
value for an error number. It's supposed to return negative values. See:
https://sourceforge.net/p/fuse/mailman/message/35616558/
If my guess is right, you need to fix your fuse callback. I suggest
starting by looking at this recent fix to sshfs:
https://github.com/libfuse/sshfs/commit/6480b66bd64a2d2f58db6fc0a3320f4464f4669e
The bottom line is that if you're playing with bleeding-edge and buggy
filesystems, that's the place to look for bugs.