fanotify: record name info for FAN_DIR_MODIFY event
authorAmir Goldstein <amir73il@gmail.com>
Thu, 19 Mar 2020 15:10:21 +0000 (17:10 +0200)
committerJan Kara <jack@suse.cz>
Wed, 25 Mar 2020 22:17:10 +0000 (23:17 +0100)
commitcacfb956d46edc5d7a1165161bfc6ca3de9519d9
tree3a53e6002e09819a82bf1475ba3f570801ac35a5
parent01affd5471dcab04c6cb0c2acaf132a20488f86f
fanotify: record name info for FAN_DIR_MODIFY event

For FAN_DIR_MODIFY event, allocate a variable size event struct to store
the dir entry name along side the directory file handle.

At this point, name info reporting is not yet implemented, so trying to
set FAN_DIR_MODIFY in mark mask will return -EINVAL.

Link: https://lore.kernel.org/r/20200319151022.31456-14-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify.c
fs/notify/fanotify/fanotify.h
fs/notify/fanotify/fanotify_user.c