Files
apfstests/tests/overlay/055.out
T
Amir Goldstein 27f7ed6348 overlay: test overlay file handle of dir with ancestor under lower redirect
Overlayfs with nfs_export enabled, indexes all directories on copy
up.  Directory index is requires for decoding lower directory file
handles in case ancestors have been renamed.

When enabling nfs_export on an overlay that has merge dirs with
lower layer redirects, the possibility of ancestor rename requires
special handling when encoding lower directory file handles from
layer > 1.

- Check decode of lower dir with parent under lower redirect
- Check decode of lower dir with grandparent under lower redirect
- Check decode of lower dir after rename of lower redirected parent
- Check decode of lower dir after rename of lower redirected grandparent

This test requires and enables overlayfs NFS export support and
merge dir rename support (redirect_dir).
NFS export support depends on and requires overlayfs index feature.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2018-02-03 00:33:51 +08:00

11 lines
620 B
Plaintext

QA output created by 055
test_file_handles SCRATCH_MNT/merged/dir -p -o dir_file_handles
test_file_handles SCRATCH_MNT/merged/dir/subdir -p -o subdir_file_handles
test_file_handles SCRATCH_MNT/merged/parent/child -p -o child_file_handles
test_file_handles SCRATCH_MNT -rp -i dir_file_handles
test_file_handles SCRATCH_MNT -rp -i subdir_file_handles
test_file_handles SCRATCH_MNT -rp -i child_file_handles
test_file_handles SCRATCH_MNT/merged.new/dir -rp -i dir_file_handles
test_file_handles SCRATCH_MNT/merged.new/dir -rp -i subdir_file_handles
test_file_handles SCRATCH_MNT/merged.new/parent -rp -i child_file_handles