2

When I use fanotify for listening to file changes, when I delete a folder in the root directory, the files under this folder appear with (deleted) characters, for example:

/data/service/el2/100/hmdfs/account/files/Download/test (deleted)/test
DELETE DIR

How to avoid this problem?

Tsyvarev
  • 60,011
  • 17
  • 110
  • 153
xzq
  • 21
  • 1
  • My linux kernel version is 5.11 – xzq Aug 17 '23 at 04:02
  • Incorporate that additional information into the **question post** itself (via [edit]-ing it). Do not use comments for that purpose. – Tsyvarev Aug 17 '23 at 08:57
  • These are fanotify annotations. I was getting these and then wrote a filter to remove them from paths. But now I changed my fanotify code and am no longer receiving the annotations. If you could produce a code sample I could most likely see where you are going wrong. – Jonathan Aug 25 '23 at 06:01

0 Answers0