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().
mode_t mode, struct fuse_file_info *fi)
{
int fd;
+ struct lo_data *lo = lo_data(req);
struct fuse_entry_param e;
int err;
return (void) fuse_reply_err(req, errno);
fi->fh = fd;
+ if (lo->cache == CACHE_NEVER)
+ fi->direct_io = 1;
+ else if (lo->cache == CACHE_ALWAYS)
+ fi->keep_cache = 1;
err = lo_do_lookup(req, parent, name, &e);
if (err)