From mboxrd@z Thu Jan 1 00:00:00 1970 From: Quentin Glidic Subject: inotify/sysfs Date: Thu, 27 Mar 2014 14:50:24 +0100 Message-ID: <53342CA0.905@sardemff7.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE To: linux-fsdevel@vger.kernel.org Return-path: Received: from relay3-d.mail.gandi.net ([217.70.183.195]:51326 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755743AbaC0OAc convert rfc822-to-8bit (ORCPT ); Thu, 27 Mar 2014 10:00:32 -0400 Received: from mfilter8-d.gandi.net (mfilter8-d.gandi.net [217.70.178.137]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 31711A80ED for ; Thu, 27 Mar 2014 15:00:30 +0100 (CET) Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter8-d.gandi.net (mfilter8-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id qBmVBPZ3++ds for ; Thu, 27 Mar 2014 15:00:14 +0100 (CET) Received: from mail.sardemff7.net (lns-5-49-106-112.dsl.dyn.abo.bbox.fr [5.49.106.112]) (Authenticated sender: sardemff7@sardemff7.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPA id 1B50BA80B6 for ; Thu, 27 Mar 2014 15:00:13 +0100 (CET) Received: from [192.168.1.65] (unknown [87.89.29.250]) by mail.sardemff7.net (Postfix) with ESMTPSA id 1B47227E1364 for ; Thu, 27 Mar 2014 13:50:09 +0000 (UTC) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hello, In GIO (GLib), the GFileMonitor[1] mechanism is using inotify for local= =20 files. To detect file creation and some other weird cases, they monitor= =20 the directory of the file and not the file directly (see=20 get_basename/get_dirname[2] usage). With sysfs, it does not work as expected for some reason. From a quick discussion of IRC with GLib folks, it appears that it=20 would be better fixed in sysfs directly. Would such a patch be accepted and if so, could I have some hints to=20 where I should start hacking to fix that? Thanks, [1] https://developer.gnome.org/gio/unstable/GFileMonitor.html [2]=20 https://git.gnome.org/browse/glib/tree/gio/inotify/ginotifyfilemonitor.= c#n82 --=20 Quentin =E2=80=9CSardem FF7=E2=80=9D Glidic -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html