<br><br><div class="gmail_quote">On Sat, Apr 30, 2011 at 10:24 PM, john terragon <span dir="ltr">&lt;<a href="mailto:terragonjohn@yahoo.com">terragonjohn@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hi Vishesh, thanks for the reply.<br><br>Out of curiosity, assuming that max_user_watches is high enough, does <br>nepomuk associate one inotify watch for each indexed file (all files, not just dirs)?<br>
</td></tr></tbody></table></blockquote><div><br></div><div>Nope. inotify is only for directories. We use an inotify watch for each directory.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Because, besides the missed updates, I noticed that when a file X update is<br>reported strigi seems to scan recursively all the files in X&#39;s directory, not only X.<br>
Kind of like the filewatcher was only notified that some file in X&#39;s dir subtree has changed<br>but not which one.<div class="im"><br>Is this supposed to happen?<br></div></td></tr></tbody></table></blockquote><div><br>
</div><div>I just checked and yes the filewatcher tells Strigi to update the entire folder. Strigi then goes through all the files in the folder and updates the ones that have actually been modified. </div><div><br></div>
<div>I&#39;ll submit a patch tom so that it directly updates that particular file instead of scanning the entire folded&#39;s contents ( not recursively, though )</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div class="im"><br></div>Best<br><font color="#888888">John</font><div class="im"><br><br><i><br></i>--- On <b>Thu, 4/28/11, Vishesh Handa <i>&lt;<a href="mailto:handa.vish@gmail.com" target="_blank">handa.vish@gmail.com</a>&gt;</i></b> wrote:<br>
<blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px"><br><div><div><div><div><br></div><div>Confirmed! This is
 weird. </div><div><br></div><div>It seems to be some kind of inotify problem. The File watching service doesn&#39;t seem to be always sending the required signals. :/ The semi good news is that I think I&#39;ll be able to write a test case for the exact steps you&#39;ve described. I&#39;ll let<br>
you know what happens.      <br></div>
</div></div>
</div></blockquote></div></td></tr></tbody></table></blockquote></div><br><br clear="all"><br>-- <br><font color="#999999">Vishesh Handa</font><br>