]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
overlay: Add test for follow of lowerdata in data-only layers
authorAmir Goldstein <amir73il@gmail.com>
Mon, 10 Jul 2023 09:07:12 +0000 (11:07 +0200)
committerZorro Lang <zlang@kernel.org>
Sun, 23 Jul 2023 04:56:22 +0000 (12:56 +0800)
commit019122400875a59b02e35dc5d49e31c9b7b704e0
treedf78081424328a803bf2d89b42818bd81c546301
parent5f8c60fe8140f7c8870c6e59114b49196b6678b5
overlay: Add test for follow of lowerdata in data-only layers

Add test coverage for following metacopy from lower layer to
data-only lower layers.

Data-only lower layers are configured using the syntax:
lowerdir=<lowerdir1>:<lowerdir2>::<lowerdata1>::<lowerdata2>.

Test that lowerdata files can be followed only by absolute redirect
from lower layer.

Test that with two lowerdata dirs, we can lookup individual lowerdata
files in both, and that a shared file is resolved from the uppermost
lowerdata dir.

There is also test case for lazy-data lookups, where we remove the
lowerdata file and validate that we get metadata from the metacopy
file, but open fails.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/overlay
tests/overlay/079 [new file with mode: 0755]
tests/overlay/079.out [new file with mode: 0644]