fanotify: add API to attach/detach super block mark
authorAmir Goldstein <amir73il@gmail.com>
Sat, 1 Sep 2018 07:41:13 +0000 (10:41 +0300)
committerJan Kara <jack@suse.cz>
Mon, 3 Sep 2018 13:16:11 +0000 (15:16 +0200)
commitd54f4fba889b205e9cd8239182ca5d27d0ac3bc2
tree2b0e5b709d0663942520d6aa830a7cd517db804d
parent60f7ed8c7c4d06aeda448c6da74621552ee739aa
fanotify: add API to attach/detach super block mark

Add another mark type flag FAN_MARK_FILESYSTEM for add/remove/flush
of super block mark type.

A super block watch gets all events on the filesystem, regardless of
the mount from which the mark was added, unless an ignore mask exists
on either the inode or the mount where the event was generated.

Only one of FAN_MARK_MOUNT and FAN_MARK_FILESYSTEM mark type flags
may be provided to fanotify_mark() or no mark type flag for inode mark.

Cc: <linux-api@vger.kernel.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c
include/uapi/linux/fanotify.h