unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: dmoncayo@gmail.com
Cc: michael.albinus@gmx.de, 13540@debbugs.gnu.org
Subject: bug#13540: 24.3.50; Regression in trunk: auto-revert-mode fails on files accessed via	samba
Date: Fri, 25 Jan 2013 10:18:58 +0200	[thread overview]
Message-ID: <83ham5llot.fsf@gnu.org> (raw)
In-Reply-To: <83ip6llmoy.fsf@gnu.org>

> Date: Fri, 25 Jan 2013 09:57:17 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: michael.albinus@gmx.de, 13540@debbugs.gnu.org
> 
> > > The lack of any messages suggests that the threads continue to run,
> > > but file notifications never come in, which probably means we cannot
> > > detect this problem automatically, and must rely on the users who know
> > > which volumes can and cannot be supported.
> > 
> > Ok, if Emacs cannot determine itself whether file notifications work,
> > I'll set `auto-revert-use-notify' to nil on that machine.
> > 
> > > Also, I presume that you tried to modify files on the mounted volumes,
> > > while you had GDB attached to Emacs.
> > 
> > Of course.  I started and "emacs -Q" process under GDB, and from that
> > emacs session I visited the file on the mounted volume and turned on
> > auto-revert-mode.  Then, if I modify the file with another program,
> > the emacs buffer isn't reverted and the GDB console doesn't show any
> > message.
> 
> Thanks.
> 
> I guess autorevert should allow users to specify whether notifications
> should be used on a per filesystem basis, rather than just globally
> for the entire session.

Actually, there's one more thing I'd ask you to check.  Can you put a
breakpoint inside the watch_completion function, say on this line:

  if (!io_info) <<<<<<<<<<<<<<<<<<<<<
    return;

and see if it ever breaks when you modify files in the directory that
is being watched?

The issue here is: do any notifications, even invalid ones, come in,
or not?  If we get invalid notifications, we could perhaps signal to
the main thread that the watch is not working, and autorevert could
then fall back on the old methods automatically.





  parent reply	other threads:[~2013-01-25  8:18 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-24  8:55 bug#13540: 24.3.50; Regression in trunk: auto-revert-mode fails on files accessed via samba Dani Moncayo
2013-01-24 10:13 ` Michael Albinus
2013-01-24 10:20   ` Dani Moncayo
2013-01-24 10:23     ` Michael Albinus
2013-01-24 16:22       ` Eli Zaretskii
2013-01-24 16:34         ` Dani Moncayo
2013-01-24 16:37           ` Dani Moncayo
2013-01-24 16:53           ` Eli Zaretskii
2013-01-24 17:23             ` Dani Moncayo
2013-01-24 17:28               ` Dani Moncayo
2013-01-24 17:39               ` Eli Zaretskii
2013-01-24 17:43               ` Eli Zaretskii
2013-01-24 17:44         ` Dani Moncayo
2013-01-24 18:13           ` Dani Moncayo
2013-01-24 18:29             ` Eli Zaretskii
2013-01-24 18:16           ` Eli Zaretskii
2013-01-25  7:46             ` Dani Moncayo
2013-01-25  7:57               ` Eli Zaretskii
2013-01-25  8:13                 ` Michael Albinus
2013-01-25  9:41                   ` Eli Zaretskii
2013-01-25  8:18                 ` Eli Zaretskii [this message]
2013-01-25  8:29                   ` Dani Moncayo
2013-01-25  9:27                     ` Eli Zaretskii
2013-01-25  9:34                       ` Dani Moncayo
2013-01-25 11:04                         ` Eli Zaretskii
2013-01-25 11:19                           ` Dani Moncayo
2013-01-25 13:44                             ` Eli Zaretskii
2013-01-25 13:29                           ` Michael Albinus
2013-02-14 10:09                             ` Michael Albinus
2013-01-24 16:32   ` Eli Zaretskii

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=83ham5llot.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13540@debbugs.gnu.org \
    --cc=dmoncayo@gmail.com \
    --cc=michael.albinus@gmx.de \
    /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).