]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6fda7065aa9025297094d09dfccd1109d77305d1
tree9f0a7a09663a46becdf2e641fff325d2eb93e2ba
parent8a7fcf834631ef8a25561c4e140adfc0e5ab5815
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