[LTP] [PATCH] inotify: cleanup - limit masks, use SAFE_ wrappers
Cyril Hrubis
chrubis@suse.cz
Thu Feb 19 17:08:47 CET 2026
Hi!
> - wd = SAFE_MYINOTIFY_ADD_WATCH(fd_notify, fname, IN_ALL_EVENTS);
> + wd = SAFE_MYINOTIFY_ADD_WATCH(fd_notify, fname, IN_ATTRIB | IN_OPEN |
> + IN_ACCESS | IN_CLOSE_NOWRITE | IN_MODIFY |
> + IN_CLOSE_WRITE);
I had a short discussion about this with Jan Kara and we agreed to keep
the IN_ALL_EVENTS here. The rationale is that if kernel starts sending
unexpected events we want the test to fail instead of filtering them
out.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list