open_by_handle: add -s option to sleep and keep files open by handle
authorAmir Goldstein <amir73il@gmail.com>
Thu, 29 Mar 2018 12:06:49 +0000 (15:06 +0300)
committerEryu Guan <guaneryu@gmail.com>
Thu, 29 Mar 2018 13:07:20 +0000 (21:07 +0800)
commit555cdbee56476fa8e34cd8bd400f39fa70e0ece0
tree2ac304798a66639e9f00858eb9d88bae61ed2f42
parent63e83951ff2d1b87532ee19c2625a15dad0788a5
open_by_handle: add -s option to sleep and keep files open by handle

This feature is needed for tests that need to open file by handle and
then perform operations while that file is open. This will be used by
an overlay test to keep disconnected dentries in dcache.

Usage: open_by_handle -s <test_dir>

On success, the program will run until it gets a terminating signal.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/open_by_handle.c