Re: inotify/sysfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Hello,

On Thu 27-03-14 14:50:24, Quentin Glidic wrote:
> 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.
  Well, I'm rather surprised inotify works with sysfs at all ;) Why do you
need to watch sysfs? Udev is the tool with which you should generally look
for e.g. new devices... Anyway, if you'd like to add fsnotify() support
into sysfs, sysfs maintainer (Greg - added to CC) is the one to ask.

								Honza

-- 
Jan Kara <jack@xxxxxxx>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux