ovl: don't fail copy up if no fileattr support on upper
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 14 Jan 2022 15:57:56 +0000 (16:57 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 14 Jan 2022 15:57:56 +0000 (16:57 +0100)
commit94fd19752b28aa66c98e7991734af91dfc529f8f
treebff531e876b3d09ae1a08ec4353c8f8e33b75bdd
parent4ee7e4a6c9b298da44029ed9ec8ed23ae49cc209
ovl: don't fail copy up if no fileattr support on upper

Christoph Fritz is reporting that failure to copy up fileattr when upper
doesn't support fileattr or xattr results in a regression.

Return success in these failure cases; this reverts overlayfs to the old
behavior.

Add a pr_warn_once() in these cases to still let the user know about the
copy up failures.

Reported-by: Christoph Fritz <chf.fritz@googlemail.com>
Fixes: 72db82115d2b ("ovl: copy up sync/noatime fileattr flags")
Cc: <stable@vger.kernel.org> # v5.15
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/copy_up.c