passthrough_ll: Use cache_readdir for directory open (#492)
authorMisono Tomohiro <misono.tm@gmail.com>
Fri, 24 Jan 2020 15:53:32 +0000 (00:53 +0900)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 24 Jan 2020 15:53:32 +0000 (15:53 +0000)
commit1caba629ff8e718a5af054be71338a8c3cb84d62
treed8dfcd19b042389ea0d3dc3857ea70b744639509
parentaa1185e153f774f1df65565f6a6fa2fb1c8cf3f3
passthrough_ll: Use cache_readdir for directory open (#492)

Upstreamed from:
  https://www.redhat.com/archives/virtio-fs/2020-January/msg00106.html

Since keep_cache(FOPEN_KEEP_CACHE) has no effect for directory as
described in fuse_common.h, use cache_readdir(FOPEN_CACHE_DIR) for
diretory open when cache=always mode.

Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
example/passthrough_ll.c