Filescanner should not watch for IN_MODIFY

- it is bad for performance (triggers many db selects) and is
useless anyway.
This commit is contained in:
ejurgensen 2014-03-21 22:57:56 +01:00
parent 3f1edc0082
commit c01698e462

View File

@ -788,7 +788,7 @@ process_directory(char *path, int flags)
#if defined(__linux__)
/* Add inotify watch */
wi.wd = inotify_add_watch(inofd, path, IN_CREATE | IN_DELETE | IN_MODIFY | IN_CLOSE_WRITE | IN_MOVE | IN_DELETE | IN_MOVE_SELF);
wi.wd = inotify_add_watch(inofd, path, IN_CREATE | IN_DELETE | IN_CLOSE_WRITE | IN_MOVE | IN_DELETE | IN_MOVE_SELF);
if (wi.wd < 0)
{
DPRINTF(E_WARN, L_SCAN, "Could not create inotify watch for %s: %s\n", path, strerror(errno));