]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit904d2f502f266bdeea3dc24036249a8afb520538
tree2b0e5b709d0663942520d6aa830a7cd517db804d
parentaa09939f734957cf28cea0d0fd36fe5e60cadbb5
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