[Bug 194293] FUSE program freezes when seeking pos > file size

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 29 23:18:51 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194293

--- Comment #7 from rmacklem at uoguelph.ca ---
Created attachment 164831
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=164831&action=edit
patch fuse so it forces DIRECT_IO for WRONLY opens

This patch forces fuse to use DIRECT_IO for files opened
WRONLY, so it won't try and read a block in before writing
a partial block.

This fix may be preferable to the other patch, since it shouldn't
make a WRONLY open fail because read/write isn't allowed.

To put this in -head, fuse also needs to be patched to invalidate
buffers when DIRECT_IO is enabled, because otherwise reads may
get stale cached data.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list