9

How to detect a file has been deleted

view full story
linux-howto

http://stackoverflow.com – I am writing a program to monitor the file system. But I'm not able to detect when a file is deleted. I tried monitoring with FAN_MARK_ONLYDIR flag hoping fanotify rise some event when deleting a file in a monitored dir, no results. It is even possible do this using fanotify? There are something to help me to do this? (HowTos)