Rick Macklem 1390cca2b1 Fix fuse to use DIRECT_IO when required.
When a file is opened write-only and a partial block was written,
buffered I/O would try and read the whole block in. This would
result in a hung thread, since there was no open (fuse filehandle)
that allowed reading. This patch avoids the problem by forcing
DIRECT_IO for this case.
It also sets DIRECT_IO when the file system specifies the FN_DIRECTIO
flag in its reply to the open.

Tested by:	nishida@asusa.net, freebsd@moosefs.com
PR:		194293, 206238
MFC after:	2 weeks
2016-05-14 20:03:22 +00:00
..
2016-05-14 20:02:02 +00:00
2016-04-20 14:29:03 +00:00
2016-05-03 21:51:52 +00:00
2016-05-10 20:14:11 +00:00
2016-05-03 18:05:43 +00:00
2016-04-29 16:07:25 +00:00
2016-05-06 15:37:06 +00:00
2016-05-06 01:49:46 +00:00
2016-04-29 20:43:51 +00:00