#9834: bfs sends spurious B_STAT_MODIFICATION_TIME notifications after file change ------------------------------+------------------------------ Reporter: bonefish | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1 Component: File Systems/BFS | Version: R1/Development Keywords: | Blocked By: Blocking: | Has a Patch: 0 Platform: All | ------------------------------+------------------------------ After a file has been changed (or just `touch`ed) BFS starts sending out `B_STAT_MODIFICATION_TIME` whenever the file is closed after opening it for writing, even if the file wasn't modified. Can be reproduced with the attached test programs: - Start monitoring a file that hasn't been changed in this session, yet: {{{ modified_time_monitor /path/to/file }}} - Verify that no spurious notification are sent yet (the test program waits 3s before closing the file): {{{ open_for_writing /path/to/file }}} - Touch the file. Notifications are received as expected. - Run `open_for_writing` again. This time after `close()` a spurious notification is received. Tested in the package-management branch, which corresponds to master hrev45747. -- Ticket URL: <http://dev.haiku-os.org/ticket/9834> Haiku <http://dev.haiku-os.org> Haiku - the operating system.