]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - fs/overlayfs/super.c
ovl: support encoding non-decodable file handles
authorAmir Goldstein <amir73il@gmail.com>
Sun, 23 Apr 2023 16:02:04 +0000 (19:02 +0300)
committerAmir Goldstein <amir73il@gmail.com>
Sat, 12 Aug 2023 16:02:47 +0000 (19:02 +0300)
commit16aac5ad1fa94894b798dd522c5c3a6a0628d7f0
tree292889602a225cba9ad4399c6d9f63a5e14e04d5
parent0c71faf5a607c8744ccee702846970bdb1a8005f
ovl: support encoding non-decodable file handles

When all layers support file handles, we support encoding non-decodable
file handles (a.k.a. fid) even with nfs_export=off.

When file handles do not need to be decoded, we do not need to copy up
redirected lower directories on encode, and we encode also non-indexed
upper with lower file handle, so fid will not change on copy up.

This enables reporting fanotify events with file handles on overlayfs
with default config/mount options.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/export.c
fs/overlayfs/inode.c
fs/overlayfs/overlayfs.h
fs/overlayfs/ovl_entry.h
fs/overlayfs/super.c