open_by_handle: add -n option to suppress drop caches
authorAmir Goldstein <amir73il@gmail.com>
Thu, 29 Mar 2018 12:06:48 +0000 (15:06 +0300)
committerEryu Guan <guaneryu@gmail.com>
Thu, 29 Mar 2018 13:07:20 +0000 (21:07 +0800)
commit63e83951ff2d1b87532ee19c2625a15dad0788a5
tree3e31db182513b0f0bde01146a5ed69bbc5bb9cba
parentfbc0f6913e444fbbeb8f71360dbd73028595b675
open_by_handle: add -n option to suppress drop caches

By default, open_by_handle drops inode and page caches before trying
to open by file handles. Add an option to suppress drop caches for
testing open by handle with warm caches.

Usage: open_by_handle -n <test_dir> [N]

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