fanotify: report file range info with pre-content events
authorAmir Goldstein <amir73il@gmail.com>
Fri, 15 Nov 2024 15:30:24 +0000 (10:30 -0500)
committerJan Kara <jack@suse.cz>
Tue, 10 Dec 2024 11:03:17 +0000 (12:03 +0100)
commit870499bc1d4dc04cba1f63dd5e7bc02b983e2458
tree6ad026d52405ba68e72f31d4ce5517fb314d34ee
parent4f8afa33817a6420398d1c177c6e220a05081f51
fanotify: report file range info with pre-content events

With group class FAN_CLASS_PRE_CONTENT, report offset and length info
along with FAN_PRE_ACCESS pre-content events.

This information is meant to be used by hierarchical storage managers
that want to fill partial content of files on first access to range.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/b90a9e6c809dd3cad5684da90f23ea93ec6ce8c8.1731684329.git.josef@toxicpanda.com
fs/notify/fanotify/fanotify.h
fs/notify/fanotify/fanotify_user.c
include/uapi/linux/fanotify.h