open_by_handle: test file handles of renamed files
authorAmir Goldstein <amir73il@gmail.com>
Thu, 2 Nov 2017 10:15:34 +0000 (12:15 +0200)
committerEryu Guan <eguan@redhat.com>
Fri, 10 Nov 2017 04:33:37 +0000 (12:33 +0800)
commit91a6f4c5779f5b52ba18bfc34ac4ea20c64bf835
tree210006801df04b8d6552262ab55755a585d80017
parent80bfe0c1586410f1ff2b35f4b90ff23f9267d49f
open_by_handle: test file handles of renamed files

usage: open_by_handle -m <test_dir> [N]

Get file handles for existing test set, rename all test files,
drop cache and try to open all files by handle.

This is needed for testing that overlayfs can find the upper
inode from lower file handle even when upper is not in the same
path as lower.

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