open_by_handle: test content of open file handle
authorAmir Goldstein <amir73il@gmail.com>
Thu, 2 Nov 2017 10:15:35 +0000 (12:15 +0200)
committerEryu Guan <eguan@redhat.com>
Fri, 10 Nov 2017 04:33:37 +0000 (12:33 +0800)
commit31ce8beba2edc743c7a346a009d4e21f8cae14be
tree89418c086c5ebcda38eb2de63287c90875f1b00f
parent91a6f4c5779f5b52ba18bfc34ac4ea20c64bf835
open_by_handle: test content of open file handle

usage: open_by_handle -rwa <test_dir> [N]

Get file handles for existing test set, write data to files,
drop caches, open all files by handle, read data and verify old data,
write new data to files.

This is needed for testing that overlay decoded file handles are not
pointing the lower inodes after new data is already written to upper
inodes after copy up.

open_by_handle -a is needed for testing copy up of disconnected overlay
decoded file handles (to index dir).

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