Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix polling observer issue with inode recycling #304

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix polling observer issue with inode recycling #304

wants to merge 2 commits into from

Commits on Mar 6, 2015

  1. Update dirsnapshot.py

    Fix issue where one file was deleted and another file was created and the created file was assigned the inode of the deleted file.  This resulted in watchdog firing a moved event even though the files were totally unrelated.  Inodes can and will be recycled, it was happening frequently in our use case, depending solely on inode number to determine it is the same file won't work.  This change checks modification time before determining that the file with the given inode was moved instead of deleted/created.
    jrichards99 committed Mar 6, 2015
    Configuration menu
    Copy the full SHA
    805d741 View commit details
    Browse the repository at this point in the history
  2. Fix tests. Since it is impossible to reliably detect file modifaction…

    … then move vs file delete then create, this test case now tests for delete and create in this scenario. Also, not all versions of Linux have nanosecond resolution on stat m_time (CentOS 5.10 did not) so fix wait time that assumed this was the case.
    jrichards99 committed Mar 6, 2015
    Configuration menu
    Copy the full SHA
    13cc532 View commit details
    Browse the repository at this point in the history