From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Added inotify support. Date: Sun, 07 Oct 2012 16:54:49 +0200 Organization: Linux Private Site Message-ID: <87obkebadi.fsf@Rainer.invalid> References: <2181827.T3JxG88qQt@descartes> <83lifoa7hr.fsf@gnu.org> <87obkkcu92.fsf@wanadoo.es> <87lifkvoxl.fsf@spindle.srvr.nix> <87ehlbtv0r.fsf@spindle.srvr.nix> <87626ntowb.fsf@spindle.srvr.nix> <87txu7s31q.fsf@spindle.srvr.nix> <87a9vyd94p.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349621708 17895 80.91.229.3 (7 Oct 2012 14:55:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2012 14:55:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 07 16:55:15 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TKsG6-0005gb-Gu for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2012 16:55:10 +0200 Original-Received: from localhost ([::1]:56460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKsG0-0003wi-J0 for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2012 10:55:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKsFy-0003vY-BC for emacs-devel@gnu.org; Sun, 07 Oct 2012 10:55:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKsFx-0005AY-0W for emacs-devel@gnu.org; Sun, 07 Oct 2012 10:55:02 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKsFw-0005AN-QR for emacs-devel@gnu.org; Sun, 07 Oct 2012 10:55:00 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TKsG1-0005e2-6p for emacs-devel@gnu.org; Sun, 07 Oct 2012 16:55:05 +0200 Original-Received: from pd9eb3f22.dip.t-dialin.net ([217.235.63.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Oct 2012 16:55:05 +0200 Original-Received: from Stromeko by pd9eb3f22.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Oct 2012 16:55:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9eb3f22.dip.t-dialin.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:3HZRjBYVFcxUyHlOvm48KCksl5A= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154191 Archived-At: Stefan Monnier writes: >>>> But that's a bug in nfsd, still. >>> Well, yes, I think so, and you think so, but the Linux kernel hackers do >>> not think so :( >> This behaviour doesn't have anything to do with nfsd (other than the >> stateless nature of NFS and the way it implements that) and you can >> trigger it quite easily without nfsd involved. > > Which behavior? The nfsd is made stateless by using hidden hardlinks to the files it uses and then uses their inode numbers to manipulate these files (all IIRC). Inotify watches files based on their names and maps that to inodes using a cache, which can be out of sync or even drop the association between inode and filename. Any further operation on that file will then not be seen by inotify unless you re-create the watch. It works somewhat more reliably if you monitor individual files rather than directories, but that isn't foolproof either. Regards Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves