All of lore.kernel.org
 help / color / mirror / Atom feed
From: Quentin Glidic <sardemff7+linux@sardemff7.net>
To: linux-fsdevel@vger.kernel.org
Subject: inotify/sysfs
Date: Thu, 27 Mar 2014 14:50:24 +0100	[thread overview]
Message-ID: <53342CA0.905@sardemff7.net> (raw)

Hello,

In GIO (GLib), the GFileMonitor[1] mechanism is using inotify for local 
files. To detect file creation and some other weird cases, they monitor 
the directory of the file and not the file directly (see 
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 
would be better fixed in sysfs directly.

Would such a patch be accepted and if so, could I have some hints to 
where I should start hacking to fix that?

Thanks,

[1] https://developer.gnome.org/gio/unstable/GFileMonitor.html
[2] 
https://git.gnome.org/browse/glib/tree/gio/inotify/ginotifyfilemonitor.c#n82

-- 

Quentin “Sardem FF7” 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

             reply	other threads:[~2014-03-27 14:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27 13:50 Quentin Glidic [this message]
2014-03-28 17:07 ` inotify/sysfs Jan Kara
2014-03-29  6:25   ` inotify/sysfs Greg KH
2014-03-31 18:52 ` inotify/sysfs Al Viro
2014-03-31 19:13   ` inotify/sysfs Linus Torvalds
2014-03-31 20:00     ` inotify/sysfs Al Viro
2014-03-31 20:10       ` inotify/sysfs Linus Torvalds

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53342CA0.905@sardemff7.net \
    --to=sardemff7+linux@sardemff7.net \
    --cc=linux-fsdevel@vger.kernel.org \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.