Files
apfstests/tests/overlay/054.out
T
Amir Goldstein ce9707ccd0 overlay: test overlay file handles of lower dir with non-indexed ancestor
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 already has non-indexed
merge dirs, the possibility of non-indexed ancestor rename requires
special handling when encoding lower directory file handles.

- Check encode/decode/read file handles of non-indexed merge dir
- Check encode/decode/read file handles of dir with non-indexed parent
- Check encode/decode/read file handles of dir with non-indexed grandparent
- Check decode/read of file handles after rename of non-indexed merge dir
- Check decode/read of file handles after rename of non-indexed parent
- Check decode/read of file handles after rename of non-indexed 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

12 lines
671 B
Plaintext

QA output created by 054
test_file_handles SCRATCH_MNT/merged -p -o merged_file_handles
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 merged_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 subdir_file_handles
test_file_handles SCRATCH_MNT/merged.new/parent -rp -i child_file_handles