passthrough_ll: lo_create() should honor CACHE_NEVER (#345)
authorMiklos Szeredi <szmi@users.noreply.github.com>
Tue, 22 Jan 2019 20:03:00 +0000 (21:03 +0100)
committerNikolaus Rath <Nikolaus@rath.org>
Tue, 22 Jan 2019 20:03:00 +0000 (20:03 +0000)
commit63d53ecc3addb6fcf3d7f38f2de6822ba37bfd2d
tree004b29a8a26a6e801a5abc9c50bbaec689efe76a
parent1a7399a216e427dbf26bedcbbcbdc5e9c5650fe5
passthrough_ll: lo_create() should honor CACHE_NEVER (#345)

lo_create() did not honour CACHE_NEVER in lo_create(), which has an effect
on how I/O is performed after the open.

The value of CACHE_ALWAYS, which results in setting fi->keep_cache, only
has an effect for the state of the cache at open, and since the file was
just created the cache is always empty.  Hence setting this doesn't have an
effect on lo_create(), but keep it for symmetry with lo_open().
example/passthrough_ll.c