lkml.org 
[lkml]   [2014]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: inotify, new idea?
    From
    On Fri, Apr 18, 2014 at 6:15 AM, Michael Kerrisk <mtk.manpages@gmail.com> wrote:
    > On Thu, Apr 17, 2014 at 11:28 PM, Lennart Sorensen
    > <lsorense@csclub.uwaterloo.ca> wrote:
    >> On Thu, Apr 17, 2014 at 11:00:37PM +0200, Jos Huisken wrote:
    >>> I was trying to maintain a local and remote directory in sync with
    >>> lsync, using inotify.
    >>> I happen to have >4M files and >400k directories... running over
    >>> /proc/sys/fs/inotify/max_user_watches
    >>
    >> Would fanotify perhaps be a better interface to use?
    >
    > (One of us is misunderstanding fanotify; it might be me.)
    >
    > Did you look at fanotify closely? I don't think it could be used for
    > this task -- does not notify linka dn unlink events, difficult to set
    > up recursive monitoring, etc.

    Does recursive monitoring even work with inotify?
    Last time I've tried it did failed as soon I did a mkdir -p a/b/c/d because
    mkdir() raced against the thread which installes the new watches.

    --
    Thanks,
    //richard


    \
     
     \ /
      Last update: 2014-04-21 00:41    [W:4.203 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site