diff options
author | 2021-10-25 16:27:42 -0300 | |
---|---|---|
committer | 2021-10-27 12:53:42 +0200 | |
commit | 130a3c742107acff985541c28360c8b40203559c (patch) | |
tree | 74194159c9127c4e9e9510658e4dda659ede06fd /fs/notify/fanotify/fanotify.h | |
parent | fanotify: Report fid info for file related file system errors (diff) | |
download | wireguard-linux-130a3c742107acff985541c28360c8b40203559c.tar.xz wireguard-linux-130a3c742107acff985541c28360c8b40203559c.zip |
fanotify: Emit generic error info for error event
The error info is a record sent to users on FAN_FS_ERROR events
documenting the type of error. It also carries an error count,
documenting how many errors were observed since the last reporting.
Link: https://lore.kernel.org/r/20211025192746.66445-28-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>
Diffstat (limited to 'fs/notify/fanotify/fanotify.h')
-rw-r--r-- | fs/notify/fanotify/fanotify.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/notify/fanotify/fanotify.h b/fs/notify/fanotify/fanotify.h index edd7587adcc5..d25f500bf7e7 100644 --- a/fs/notify/fanotify/fanotify.h +++ b/fs/notify/fanotify/fanotify.h @@ -205,6 +205,7 @@ FANOTIFY_NE(struct fanotify_event *event) struct fanotify_error_event { struct fanotify_event fae; + s32 error; /* Error reported by the Filesystem. */ u32 err_count; /* Suppressed errors count */ __kernel_fsid_t fsid; /* FSID this error refers to. */ |