fsnotify: support overlayfs
authorAihua Zhang <zhangaihua1@huawei.com>
Thu, 7 Jul 2016 07:37:53 +0000 (15:37 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 5 Sep 2016 11:57:48 +0000 (13:57 +0200)
commit99f4ff2ffc24ed1214e4b7954016f052b41f9eb2
treed8cadb822aea160ec63aadfac26a27f41f8f7ec1
parentb90e7c3fdf924f6aedf55fbe604bbd9b7754b9a1
fsnotify: support overlayfs

When an event occurs direct it to the overlay inode instead of the real
underlying inode.

This will work even if the file was first on the lower layer and then
copied up, while the watch is there.  This is because the watch is on the
overlay inode, which stays the same through the copy-up.

For filesystems other than overlayfs this is a no-op, except for the
performance impact of an extra pointer dereferece.

Verified to work correctly with the inotify/fanotify tests in LTP.

Signed-off-by: Aihua Zhang <zhangaihua1@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
include/linux/fsnotify.h
This page took 0.025965 seconds and 5 git commands to generate.