title: using vsftpd with inotify IN_CLOSE_WRITE event
body: <p>I'm trying to write event based ftp server that notifies me when some user uploads any file(users will never do any delete or other stuff, they just upload). Apache ftpServer with ftplets is what I need but it is java based and does not satisfy my environment. So what I'm planning to do is to run <code>vsftpd</code> and  another process besides it which listens to <code>IN_CLOSE_WRITE</code> event. When <code>vsftpd</code> close the file descriptor after finishing file upload, my process will be notified and I will do some appropriate action. My questions are:</p>
  
  <ol>
  <li>Is it possible that I miss any file upload?</li>
  <li>Is it possible that <code>IN_CLOSE_WRITE</code> fired in other situations that I get inconsistent files instead of ready to use files?</li>
  </ol>