QUESTION: monitor locks (by polling).

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

 



Hi,

I'm working on a program (notifyfs) which monitors various fs events
like create/change/delete of files and directories (using  inotify on
linux), mount and unmounts (by monitoring /proc/self/mountinfo on
linux) and locks (by watching the /proc/locks file). I have the idea
to also enable local AND remote monitoring by using a remote notifyfs
server.

Now with watching /proc/locks, I hoped it would work the same as with
watching the /proc/self/mountinfo: open it readonly, add the fd to the
eventloop (in my case with epoll, using EPOLLERR as flag). Now thanks
to Karel Zak I've found out that the /proc/self/mountinfo file is
pollable and /proc/locks not.

Before I write a patch, Is it the way to go for me to enable the
polling on the /proc/locks file, just like it's done on the
mountinfo file?

Stef
--
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