From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54016: 29.0.50; TRAMP + sshfs says constantly that file changed Date: Wed, 16 Feb 2022 18:59:43 +0100 Message-ID: <20220216175943.tir4a32lxcsztuwu@Ergus> References: <877d9vrik7.fsf.ref@aol.com> <877d9vrik7.fsf@aol.com> <87iltfw6zm.fsf@gmx.de> <20220216110709.i6zt4557j22a3vly@Ergus> <87ee42x27j.fsf@gmx.de> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35570"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54016@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 16 19:11:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nKOlo-00097T-8M for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Feb 2022 19:11:16 +0100 Original-Received: from localhost ([::1]:60076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKOlm-0006OU-N4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Feb 2022 13:11:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKObx-0004PZ-8I for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 13:01:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55499) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKObu-0004fz-6h for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 13:01:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nKObu-00050B-0f for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 13:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Feb 2022 18:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54016 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: "Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors" , 54016@debbugs.gnu.org Original-Received: via spool by 54016-submit@debbugs.gnu.org id=B54016.164503443819188 (code B ref 54016); Wed, 16 Feb 2022 18:01:01 +0000 Original-Received: (at 54016) by debbugs.gnu.org; 16 Feb 2022 18:00:38 +0000 Original-Received: from localhost ([127.0.0.1]:49396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKObS-0004zK-PL for submit@debbugs.gnu.org; Wed, 16 Feb 2022 13:00:38 -0500 Original-Received: from sonic313-14.consmr.mail.bf2.yahoo.com ([74.6.133.124]:37150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKObR-0004z8-Ns for 54016@debbugs.gnu.org; Wed, 16 Feb 2022 13:00:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1645034428; bh=4TWM+8fxoLoqxOmPmpQ0N5uO0wwVvKQ/efO2hYh04sM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=nERy9Gbvt4l/c3xwIDAvNweghQcMGo6uPV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ypwpgpWcCELXXEJnBzGDcpb_6b9_viv.wAw5C YSTOEw6RmmuE7X_u4iw0TbvfaFoIKTfHxoVYOKMDHtTU6pMaQgHAW76CPPNTmRhK80DuTalhlzp2 MdEbbF.rdWMl8Jmf5TZH5ZCAhEFIoQgrvQvOpo1BbytCbpGYAucIZpTxT7LdmmXlKNItR6Us_LUP 1QnhpXZIxSDF5yhlGoLwk5IqV9UbAxDNanXUoGbSyz5Y.LB8MVrpxTM23nP14xDgHfNl8_8JEhfs dzzIvQHm3J3AvEnRiB6vDpzJQJLTnNhCkSduKkkV3GWCLHXUylOmvnfgucP48bwimCLhxaenDa7o iEYMh9qIc2fRVTuXPMQyDiZ4Qt5_RpdU5S.7XWKQDhzXNqdbVbF21o3q0k2QCP9pNjviMrEupagb skxZ0mOhIXvilsuB8DkzWQnWs5fmN2Q98gpz4YodV67szWv_v3QcaG0An8ztUx.JDsD1Q3RahrxG FyGSPPebt4Mw4Ygny33AjrDjVsCTWmSdV4euf5aole95IGwvThbrB6p9jgsf8yHXKshE51B.MXwj i1hmpDQD4Jwdx7jklIxbgQqRyw9OPg4H2AcduZsbeq X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Wed, 16 Feb 2022 18:00:28 +0000 Original-Received: by kubenode505.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID bb89ec3032c28369afadd20a359281b0; Wed, 16 Feb 2022 18:00:21 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87ee42x27j.fsf@gmx.de> X-Mailer: WebService/1.1.19724 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227042 Archived-At: On Wed, Feb 16, 2022 at 04:26:08PM +0100, Michael Albinus wrote: >Ergus writes: > >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. > >Thanks for the recipe and the traces. Finally, I could reproduce the >problem locally, it was due to a missing update of the buffer's >modification time. The appended patch fixes this for me, could you pls >test? > >Best regards, Michael. > Hi: The patch seems to solve the issue for me. Feel free to close the issue. Very thanks!! Ergus