GNU bug report logs -
#70900
30.0.50; tramp complains "File error: Cannot remove lock file for /ssh:..." on every save when remote-file-name-inhibit-locks is non-nil
Previous Next
Reported by: Dmitry Gutov <dmitry <at> gutov.dev>
Date: Mon, 13 May 2024 01:04:02 UTC
Severity: normal
Found in version 30.0.50
Fixed in version 30.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 70900 <at> debbugs.gnu.org (full text, mbox):
Dmitry Gutov <dmitry <at> gutov.dev> writes:
Hi Dmitry,
> 1. (setq remote-file-name-inhibit-locks t)
> 2. Open some file remotely, lightly edit and save it.
> 3. See this message in the Messages buffer.
The description of remote-file-name-inhibit-locks says "Whether to
create file locks for remote files.". And this is what Tramp
does. Nothing said about checking/removing of lock files.
If we want to suppress these actions as well, we shall agree about, and
change the doc. Eli?
> BTW, I'm surprised this variable isn't mentioned in Tramp's FAQ (the
> performance section in particular).
???
In the Tramp manual, node "Frequently Asked Questions", item "How to
speed up TRAMP?", there is
--8<---------------cut here---------------start------------->8---
− Disable file locks. Set ‘remote-file-name-inhibit-locks’ to
‘t’ if you know that different Emacs sessions are not
modifying the same remote file.
--8<---------------cut here---------------end--------------->8---
> It would also make sense to switch it on by default - it has a
> noticeable effect on performance.
No. File locks are an essential part of Emacs. Disabling them has the
potential to damage something (see above), so it shall be decided by the user.
Best regards, Michael.
This bug report was last modified 1 year and 58 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.