summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2016-05-28 22:42:56 +0000
committerrmacklem <rmacklem@FreeBSD.org>2016-05-28 22:42:56 +0000
commit828d541106e4d84b0826748997d9bb8ab26ab90e (patch)
tree82c3e42d24d0fcb66428c32024317893ba89ace4 /lib/libc
parent91ba1b1e4e9a4f9897c65479d05434356024147b (diff)
downloadFreeBSD-src-828d541106e4d84b0826748997d9bb8ab26ab90e.zip
FreeBSD-src-828d541106e4d84b0826748997d9bb8ab26ab90e.tar.gz
MFC: r299753
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.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud