diff options
author | Gabriel Krisman Bertazi <krisman@collabora.com> | 2021-10-25 22:27:41 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-10-27 13:37:20 +0300 |
commit | 936d6a38be39177495af38497bf8da1c6128fa1b (patch) | |
tree | fe56f1c553c6853f1a037ee42d564ffa0ca83146 /Documentation | |
parent | 572c28f27a269f88e2d8d7b6b1507f114d637337 (diff) | |
download | linux-936d6a38be39177495af38497bf8da1c6128fa1b.tar.xz |
fanotify: Report fid info for file related file system errors
Plumb the pieces to add a FID report to error records. Since all error
event memory must be pre-allocated, we pre-allocate the maximum file
handle size possible, such that it should always fit.
For errors that don't expose a file handle, report it with an invalid
FID. Internally we use zero-length FILEID_ROOT file handle for passing
the information (which we report as zero-length FILEID_INVALID file
handle to userspace) so we update the handle reporting code to deal with
this case correctly.
Link: https://lore.kernel.org/r/20211025192746.66445-27-krisman@collabora.com
Link: https://lore.kernel.org/r/20211025192746.66445-25-krisman@collabora.com
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
[Folded two patches into 2 to make series bisectable]
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions