Deleted Added
full compact
57c57
< __FBSDID("$FreeBSD: head/sys/fs/fuse/fuse_file.c 242727 2012-11-08 00:32:49Z attilio $");
---
> __FBSDID("$FreeBSD: head/sys/fs/fuse/fuse_file.c 299753 2016-05-14 20:03:22Z rmacklem $");
144d143
< fuse_vnode_open(vp, foo->open_flags, td);
145a145,155
> /*
> * For WRONLY opens, force DIRECT_IO. This is necessary
> * since writing a partial block through the buffer cache
> * will result in a read of the block and that read won't
> * be allowed by the WRONLY open.
> */
> if (fufh_type == FUFH_WRONLY)
> fuse_vnode_open(vp, foo->open_flags | FOPEN_DIRECT_IO, td);
> else
> fuse_vnode_open(vp, foo->open_flags, td);
>