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 12:07:09 +0100 Message-ID: <20220216110709.i6zt4557j22a3vly@Ergus> References: <877d9vrik7.fsf.ref@aol.com> <877d9vrik7.fsf@aol.com> <87iltfw6zm.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="3994"; 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 12:08:48 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 1nKIAy-0000vQ-P9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Feb 2022 12:08:48 +0100 Original-Received: from localhost ([::1]:57648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKIAx-00072E-M8 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Feb 2022 06:08:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKIAE-000712-SW for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 06:08:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKIAE-00054l-J2 for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 06:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nKIAE-0001Ec-A7 for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 06:08: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 11:08:02 +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 submit@debbugs.gnu.org id=B.16450096764727 (code B ref -1); Wed, 16 Feb 2022 11:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Feb 2022 11:07:56 +0000 Original-Received: from localhost ([127.0.0.1]:47468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKIA7-0001EA-JJ for submit@debbugs.gnu.org; Wed, 16 Feb 2022 06:07:56 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:36418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKIA5-0001Dy-Nt for submit@debbugs.gnu.org; Wed, 16 Feb 2022 06:07:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKIA5-0006pt-7I for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 06:07:53 -0500 Original-Received: from sonic317-28.consmr.mail.bf2.yahoo.com ([74.6.129.83]:36140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKIA3-00053q-2U for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 06:07:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1645009669; bh=LfKq2fQYTcMASo+3VJ+WLcZakaet4X47JKMlh1f0Poo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=QkaoOeQLZQcRIih28+d1VUvaRRo+jn3C33FZq7yj1LG3uMh/yeZjkK7zjlImQdCQxLPdtD6Mqx5Bgris9ZItabSMhECZMacL7E6L8ymDAvp9MmmLxExkqyH2jcfHKIhQ2zSo0eEFhvy6qyZepaeP1wcKk3rHBiDB1qmQwed5AqEckyCNHL5YFZC7cd3j82l/SywY5ngAsByWiFljQ4C+tlzo6CUDWcXxyBURkD62hEuFPbgh5eM2XnlppZHWdavBUZL1Uui0QdtPD9Atiz2UPLXRdT7s+SfCK/zXxhOcIkp02IGHqGw2ohgGA0HTnohZgfdd4AVn5oAXtpq6fLH40g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645009669; bh=fJi/xyE0IktcdLfeWTBfQdX1+EZBy4DnFFCsE9Ho/dV=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=TWkTlThslWX+YNJSLDAbNrU1RvKf6S93zM1N8kFpUoNFq7ywxJ64iV3HFraOCUuXEk96IuMyt7uA1bcVqlJEmzTITkdRj2FJ8rr02irOV2yn4TAeZqCgO5iIFeL5eYXOuuTVRIshRQCK4eUmTWH5LsEQup4cbeYI/UUD2VH1vMsjZgWsFd0S84e/vNDbQAXRCcqsxMy8LL16f1aNx5CalRxxVVWtZB/tbZ7zvmHc1glQU8Mb4VbIenWXd85sF1bBcZIcApwzC/YITgjDQ+N5e1a2zIrpugQQ9H00HrUIPNTyn0P6byP13mPVAqHwM2Ig/rSrhA96H8Ec8URZPiA1fg== X-YMail-OSG: SgEbRNgVM1msML6JpU37FnoEV_OW3M6ZdQ5s7U3aQwlvxXqRmFB_rjKcLcwdORw LdFFJz9Hno9sq8FYYtiwGg3qcOJySquzvrRZadsFrGtaRlhMhTH5SiF1C4igJoaJEi9BxEPU.L8d mdQIg9J5SPMS1YqPM_0NXFjke05qcZeX0COjb9k8h0uD1irfYUYYbYAnq6QbWV5xtXUdL8FKZ5KG xprkaUAjwv57Pm97YYFJnpeb_3jC5AJh8thaPJ8z9I4.0bamZUee7k8TObnpyc9oQhhMBXO3RC.e 1ROh6wsKyeDxzok54Sk5tHC0jwby86LgCpWYwPipg2ADS_oitCHJNzc7tFO_5uujvJV_uzug0UH8 A1PWAZl3.FVii7m9CGUtkYCVNrK8r6nMXwM5nTQ4BTqYo8N4TtvRFn4CHpawBhRiH47RZIjFLYYY g9Cpt1AWrTsZn4PNmV09APqkp5ovuOpqtYCaIlWBWNPUa1RvQr99_s0RYvVHqiIitzITkGrn0bab FReGzaWyYWbP5tq3CaZG8OKjio9e5804k4W.SjGI45jFTS3jGBAQtz.cFny7vNjrC01yCqV_dbpW G5lwAgzzKBdWcSjjxK3r1tNpnBGr54X40oReR1dozJen2OWYr_03ktjlZt9qgg0Y0M6Jyy6Iy1oB MIrHaXWKKernuq83CGAYxqUWUOvBI8yWgaZgWhNHpKxqiUmqV_16_32QKYcNi3u7vYm5Fp3ebOgM aoIgvvpNAo6qoGiEDMwnuO9nbyY.bBJYGk7BGM3xVagPPa8mATtsr_Ej_YcpwuQmLm8QImCILLMk O2sPDrOBxclBtnRIKyhoOCBNN52EZ48LIrHnmeqHBW X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.bf2.yahoo.com with HTTP; Wed, 16 Feb 2022 11:07:49 +0000 Original-Received: by kubenode508.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID c97b55d47059dac63156287524eb12da; Wed, 16 Feb 2022 11:07:47 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87iltfw6zm.fsf@gmx.de> X-Mailer: WebService/1.1.19724 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.129.83; envelope-from=spacibba@aol.com; helo=sonic317-28.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:227031 Archived-At: 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" 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)