linux/fs/notify/fanotify
Jan Kara 7b1f641776 fsnotify: Let userspace know about lost events due to ENOMEM
Currently if notification event is lost due to event allocation failing
we ENOMEM, we just silently continue (except for fanotify permission
events where we deny the access). This is undesirable as userspace has
no way of knowing whether the notifications it got are complete or not.
Treat lost events due to ENOMEM the same way as lost events due to queue
overflow so that userspace knows something bad happened and it likely
needs to rescan the filesystem.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2018-02-27 10:25:33 +01:00
..
fanotify_user.c fanotify: Avoid lost events due to ENOMEM for unlimited queues 2018-02-27 10:25:33 +01:00
fanotify.c fsnotify: Let userspace know about lost events due to ENOMEM 2018-02-27 10:25:33 +01:00
fanotify.h fanotify: Avoid lost events due to ENOMEM for unlimited queues 2018-02-27 10:25:33 +01:00
Kconfig treewide: Fix typos in Kconfig 2017-10-12 15:42:00 +02:00
Makefile fanotify: fanotify_init syscall declaration 2010-07-28 09:58:55 -04:00