unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 54016@debbugs.gnu.org
Subject: bug#54016: 29.0.50; TRAMP + sshfs says constantly that file changed
Date: Wed, 16 Feb 2022 12:07:09 +0100	[thread overview]
Message-ID: <20220216110709.i6zt4557j22a3vly@Ergus> (raw)
In-Reply-To: <87iltfw6zm.fsf@gmx.de>

On Wed, Feb 16, 2022 at 09:28:13AM +0100, Michael Albinus wrote:
>Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text
>editors" <bug-gnu-emacs@gnu.org> writes:
>
>> Hi:
>
>Hi,
>
>> Using tramp+sshfs it works pretty much fine at the beginning but after
>> some minutes it interrupts constantly saying that the file changed on
>> disk and asks for edit confirmation.
>>
>> By constantly I mean every time a new edit is attempt I get this (even
>> several times consecutive).
>>
>> ```
>> Saving file /sshfs:XXX:XXXX
>> benchmarks_ompss.h has changed since visited or saved.  Save anyway? (y or n) y
>> benchmarks_ompss.h changed on disk; really edit the buffer? (y, n, r or C-h) y
>> File on disk now will become a backup file if you save these changes.
>> Wrote /sshfs:XXX:XXXX
>> ```
>
>Well, I would need a recipe to reproduce. Could you run it, when
>tramp-verbose is set to 10? And please tell me at which time the problem
>starts to appear, so I have a chance to find it in the debug buffer.
>
>I know that the debug buffer will be huge after a while, but there is no
>problem if you send it directly to me (or a URL where I could find it).
>

1) C-x C-f /sshfs:mn3:/home/ergus/cholesky_ompss2/cholesky_utils.c
2) edit and save (C-x C-f)

3) Try to edit again:

and get the message:

```
cholesky_utils.c changed on disk; really edit the buffer? (y, n, r or C-h) y
File on disk now will become a backup file if you save these changes.
```

While this is printed in the debug buffer.


```
12:00:00.545261 tramp-handle-lock-file (1) # Quit: "Quit", ""
12:00:11.644888 tramp-get-file-property (8) # /home/ergus/cholesky_ompss2/cholesky_utils.c file-attributes-nil undef; inhibit: t; cache used: nil; cached at: 11:59:49
12:00:11.650265 tramp-get-file-property (8) # /home/ergus/cholesky_ompss2/cholesky_utils.c local-file-name undef; inhibit: t; cache used: nil; cached at: 11:59:49
12:00:11.651051 tramp-get-connection-property (7) # process-buffer nil; cache used: t
12:00:11.651728 tramp-get-connection-property (7) # mount-point nil; cache used: nil
12:00:11.653042 tramp-get-file-property (8) # / mounted nil; inhibit: 10; cache used: nil; cached at: 11:59:41
12:00:11.693504 tramp-fuse-mounted-p (6) # mount -t fuse.sshfs
mn3:/ on /tmp/tramp.sshfs.mn3 type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=1000,group_id=985)
12:00:11.694366 tramp-set-file-property (8) # / mounted mn3:/
12:00:11.695260 tramp-get-connection-property (7) # process-name nil; cache used: nil
12:00:11.695738 tramp-set-connection-property (7) # connected t
12:00:11.696147 tramp-get-connection-property (7) # uid-integer 1000; cache used: t
12:00:11.696682 tramp-get-connection-property (7) # gid-integer 985; cache used: t
12:00:11.697156 tramp-get-connection-property (7) # uid-string ergo; cache used: t
12:00:11.697708 tramp-get-connection-property (7) # gid-string users; cache used: t
12:00:11.698783 tramp-get-connection-property (7) # mount-point nil; cache used: nil
12:00:11.700314 tramp-set-file-property (8) # /home/ergus/cholesky_ompss2/cholesky_utils.c local-file-name /tmp/tramp.sshfs.mn3/home/ergus/cholesky_ompss2/cholesky_utils.c
12:00:11.901823 tramp-set-file-property (8) # /home/ergus/cholesky_ompss2/cholesky_utils.c file-attributes-nil (nil 1 1000 985 (24621 18268 0 0) (25100 55619 0 0) (25100 55619 0 0) 9971 -rw-r--r-- t 59 44)
12:00:11.905766 tramp-get-file-property (8) # /home/ergus/cholesky_ompss2/cholesky_utils.c file-attributes-nil (nil 1 1000 985 (24621 18268 0 0) (25100 55619 0 0) (25100 55619 0 0) 9971 -rw-r--r-- t 59 44); inhibit: 120; cache used: t; cached at: 12:00:11
12:00:24.093022 tramp-get-file-property (8) # /home/ergus/cholesky_ompss2/ file-attributes-nil (t 1 1000 985 (25100 55571 0 0) (24778 8283 0 0) (24778 8283 0 0) 4096 drwxr-xr-x t 27 44); inhibit: 120; cache used: t; cached at: 11:58:59
12:00:24.093775 tramp-get-file-property (8) # /home/ergus/cholesky_ompss2/ file-attributes-nil (t 1 1000 985 (25100 55571 0 0) (24778 8283 0 0) (24778 8283 0 0) 4096 drwxr-xr-x t 27 44); inhibit: 120; cache used: t; cached at: 11:58:59
```

This is the output only after 3) The buffer was full of other stuff
before (attached in the previous email)





  parent reply	other threads:[~2022-02-16 11:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <877d9vrik7.fsf.ref@aol.com>
2022-02-15 20:17 ` bug#54016: 29.0.50; TRAMP + sshfs says constantly that file changed Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-16  8:28   ` Michael Albinus
2022-02-16 10:57     ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-16 11:07     ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-02-16 15:26       ` Michael Albinus
2022-02-16 17:59         ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-16 19:28           ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220216110709.i6zt4557j22a3vly@Ergus \
    --to=bug-gnu-emacs@gnu.org \
    --cc=54016@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=spacibba@aol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).