]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18d07b8a507c993e1cca98aece6830ec9b4f7eeb
treebff531e876b3d09ae1a08ec4353c8f8e33b75bdd
parent1683f0caf3bf81149ffb804b2107f1efdc1f3809
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: 36cfe446576b ("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