fsnotify: Support FS_ERROR event type
authorGabriel Krisman Bertazi <krisman@collabora.com>
Mon, 25 Oct 2021 19:27:32 +0000 (16:27 -0300)
committerJan Kara <jack@suse.cz>
Wed, 27 Oct 2021 10:34:49 +0000 (12:34 +0200)
commit9daa811073fa19c08e8aad3b90f9235fed161acf
tree370ac5cdd4e5115db505d591c4f9954dafa6921c
parent4fe595cf1c80e7a5af4d00c4da29def64aff57a2
fsnotify: Support FS_ERROR event type

Expose a new type of fsnotify event for filesystems to report errors for
userspace monitoring tools.  fanotify will send this type of
notification for FAN_FS_ERROR events.  This also introduce a helper for
generating the new event.

Link: https://lore.kernel.org/r/20211025192746.66445-18-krisman@collabora.com
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Jan Kara <jack@suse.cz>
include/linux/fsnotify.h
include/linux/fsnotify_backend.h