#96 iNotify event triggered early?

open
Jin
5
2015-10-22
2011-07-31
No

Occasionally (maybe 30% of the time), new videos are not imported into the database. The directory that is being scanned through iNotify is exported through NFS. (It is on the same machine on which Mediatomb is running.) I generally copy new videos from a different machine through NFS.

What I think may be happening is that as soon as the copy operation is started an iNotify event is triggered, but it is too early for Mediatomb to be able to read any metadata from the file. (There doesn't appear to be anything in the log.) If I do a "touch <filename>", a new event is triggered and Mediatomb picks it up immediately.

Discussion

  • James Smith

    James Smith - 2015-08-05
    Post awaiting moderation.
  • James Smith

    James Smith - 2015-10-22

    "inotifywait -m -r test -o testinotifykio" output from a file copy via KDE kio:

    test/ CREATE ***..part
    test/ OPEN ***..part
    test/ MODIFY ***..part
    test/ MODIFY ***..part

    ...

    test/ MODIFY ***..part
    test/ MODIFY ***..part
    test/ CLOSE_WRITE,CLOSE ***..part
    test/ CREATE ***.
    test/ DELETE ***..part
    test/ ATTRIB ***.
    test/ ATTRIB ***.
    test/ OPEN,ISDIR
    test/ CLOSENOWRITE,CLOSE,ISDIR

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks