Subject: bug#72641: 31.0.50; "Unlocking file: Invalid argument" when deleting lock file on network file system

From: Paul Eggert <[email-masked]>
Date: Sat, 17 Aug 2024 15:38:06 -0700

On 2024-08-17 13:03, Michal Nazarewicz wrote:
> It looks like symlink(2) fails with EIO while the server creates
> a regular file, however it takes the client to notice another second.

Yes, it's definitely a file system bug, and I don't see any good way for 
Emacs to work around it.

You might try doing your CIFS mount with the mfsymlinks option. See:

https://docs.kernel.org/admin-guide/cifs/usage.html

https://wiki.samba.org/index.php/UNIX_Extensions#Minshall.2BFrench_symlinks

If you're already using mfsymlinks it might be a good time to file a bug 
report with your file system supplier.