ovl: return required buffer size for file handles
authorLubos Dolezel <lubos@dolezel.info>
Mon, 4 May 2020 19:35:09 +0000 (21:35 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 13 May 2020 09:11:24 +0000 (11:11 +0200)
commit144da23beab87b27992e5e1b41bd954de0bf2581
tree9f0a7a09663a46becdf2e641fff325d2eb93e2ba
parent399c109d357a7e217cf7ef551e7e234439c68c15
ovl: return required buffer size for file handles

Overlayfs doesn't work well with the fanotify mechanism.

Fanotify first probes for the required buffer size for the file handle,
but overlayfs currently bails out without passing the size back.

That results in errors in the kernel log, such as:

[527944.485384] overlayfs: failed to encode file handle (/, err=-75, buflen=0, len=29, type=1)
[527944.485386] fanotify: failed to encode fid (fsid=ae521e68.a434d95f, type=255, bytes=0, err=-2)

Signed-off-by: Lubos Dolezel <lubos@dolezel.info>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/export.c