From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nix Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Added inotify support. Date: Sat, 06 Oct 2012 22:28:49 +0100 Message-ID: <87txu7s31q.fsf@spindle.srvr.nix> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349558938 21792 80.91.229.3 (6 Oct 2012 21:28:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2012 21:28:58 +0000 (UTC) Cc: =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 06 23:29:04 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 1TKbvh-00057a-Ml for ged-emacs-devel@m.gmane.org; Sat, 06 Oct 2012 23:29:01 +0200 Original-Received: from localhost ([::1]:46687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKbvb-0007MB-Qq for ged-emacs-devel@m.gmane.org; Sat, 06 Oct 2012 17:28:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKbvY-0007Lu-VX for emacs-devel@gnu.org; Sat, 06 Oct 2012 17:28:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKbvX-0006tT-OF for emacs-devel@gnu.org; Sat, 06 Oct 2012 17:28:52 -0400 Original-Received: from icebox.esperi.org.uk ([81.187.191.129]:59252 helo=mail.esperi.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKbvX-0006tP-EW for emacs-devel@gnu.org; Sat, 06 Oct 2012 17:28:51 -0400 Original-Received: from spindle.srvr.nix (nix@spindle.srvr.nix [192.168.14.15]) by mail.esperi.org.uk (8.14.5/8.14.5) with ESMTP id q96LSneY001615; Sat, 6 Oct 2012 22:28:49 +0100 Emacs: it's all fun and games, until somebody tries to edit a file. In-Reply-To: (Stefan Monnier's message of "Sat, 06 Oct 2012 17:26:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-DCC-STAT_FI_X86_64_VIRTUAL-Metrics: spindle 1245; Body=3 Fuz1=3 Fuz2=3 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 81.187.191.129 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:154143 Archived-At: On 6 Oct 2012, Stefan Monnier uttered the following: >>> If nfsd applies a modification and it's not reflected with some inotify >>> event, I think that's a bug that the kernel developers would want to fix. >> They don't care. If an event doesn't come through the normal VFS layers, >> inotify won't see it, and that's that. > > 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 :( from userspace via the VFS: other activity might >> Oh yes, indeed. I'm just arguing against ripping out polling and >> replacing it with inotify, really: > > I have no intention to rip out polling. Rather I hope that the > higher-level API we come up with can be implemented by any of Windows's > low-level API, inotify, MacOSX's equvalent, or polling. ... which is what I hoped to hear. I've seen several projects rip out polling because inotify can do anything, and end up with something that worked worse for NFS users than what they had before. (NFSv4 could in theory implement something like inotify, but for earlier versions, polling is really all you could hope to do. Well, that or have some parallel daemon inotifying on the clients and informing the server of inotify activity, and vice versa...) -- NULL && (void)