ovl: warn about orphan metacopy
authorKevin Locke <kevin@kevinlocke.name>
Sun, 23 Aug 2020 14:38:17 +0000 (08:38 -0600)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 12 Nov 2020 10:31:55 +0000 (11:31 +0100)
commit0a8d0b64dd6acfbc9e9b79022654bbe1ade4a29a
tree42ca3e4a9addbcde5b5ba761ef61d2efeca78acf
parent58afaf5d605f091abf7491774e34fa29d4a1994c
ovl: warn about orphan metacopy

When the lower file of a metacopy is inaccessible, -EIO is returned.  For
users not familiar with overlayfs internals, such as myself, the meaning of
this error may not be apparent or easy to determine, since the (metacopy)
file is present and open/stat succeed when accessed outside of the overlay.

Add a rate-limited warning for orphan metacopy to give users a hint when
investigating such errors.

Link: https://lore.kernel.org/linux-unionfs/CAOQ4uxi23Zsmfb4rCed1n=On0NNA5KZD74jjjeyz+et32sk-gg@mail.gmail.com/
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/namei.c