Skip to content

Improve File System Monitor

No due date 66% complete

The file system monitor located in c_fs_monitor/znotify.c has an O(n) search algorithm in it. There are several other issues with it:

  • New child directories are sometimes not reported
  • There is no support when directories that are being watched being deleted
  • The function "json_safe" isn't catching the empty string, cause a "\0" being printed breaking a Go …

The file system monitor located in c_fs_monitor/znotify.c has an O(n) search algorithm in it. There are several other issues with it:

  • New child directories are sometimes not reported
  • There is no support when directories that are being watched being deleted
  • The function "json_safe" isn't catching the empty string, cause a "\0" being printed breaking a Go routine
  • When the IN_DELETE_SELF occurs, the JSON object that is created includes a portion of the path in the wrong string
Loading