generic: test decoding file handles after cycle mount
authorAmir Goldstein <amir73il@gmail.com>
Tue, 23 Jan 2018 20:59:08 +0000 (22:59 +0200)
committerEryu Guan <eguan@redhat.com>
Wed, 24 Jan 2018 10:09:02 +0000 (18:09 +0800)
commit6fd4ec6c1a5c400d98320d597e120d2ac69c0faf
treee6aedef6f9807fdc9a819ef9f5a9f6d8880cc6d4
parent3e729f31b42a0ef2fd60448cbbe7d62d9827bffd
generic: test decoding file handles after cycle mount

open_by_handle can now store and load file handles from a file:

usage:
 open_by_handle -p -o <handles_file> <test_dir> [N]
 open_by_handle -p -i <handles_file> <test_dir> [N]

Add a new generic/exportfs test to use these new options to test
decoding file handles after cycle mount and after directory renames.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
src/open_by_handle.c
tests/generic/477 [new file with mode: 0755]
tests/generic/477.out [new file with mode: 0644]
tests/generic/group