diff options
| author | Giuseppe Scrivano <giuseppe@scrivano.org> | 2026-11-06 14:38:18 +0100 |
|---|---|---|
| committer | Amir Goldstein <amir73il@gmail.com> | 2026-11-10 15:47:32 +0100 |
| commit | 477449a7a5fd1b2fe973fe2978b0c921115a65f3 (patch) | |
| tree | 52bf1022e1ac18c6ffb7275d5f256d2620875f2d /tools/perf/scripts/python/bin | |
| parent | cb6c084182d4c69b7eeff0bd519dd7e018749602 (diff) | |
ovl: do not always clear absolute_redirect
ovl_check_redirect() clears d->absolute_redirect before it checks that
the path element has a redirect xattr. An element without one, such as
an intermediate directory in a lower layer, then clears the flag set by
the absolute redirect of a metacopy file found in a higher layer. The
lookup of the data in the data-only layers is not deferred any more and
the lookup fails with -EIO:
# l2/f: metacopy, redirect "/dir/file"; l1/dir/ exists, no "file"
mount -t overlay none -o metacopy=on,redirect_dir=on,\
lowerdir+=l2,lowerdir+=l1,datadir+=data m
cat m/f # Input/output error
Set d->absolute_redirect only when a redirect xattr was read.
Fixes: 5436ab0a864e ("ovl: implement lookup in data-only layers")
Closes: https://sashiko.dev/#/bug/linux-2cc24e0b-fbdc-4cf1-aded-cfd19c2918ee
Cc: stable@vger.kernel.org
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
