Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2015 23:18:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 194293] FUSE program freezes when seeking pos > file size
Message-ID:  <bug-194293-3630-X0cNJwQfI4@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-194293-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-194293-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194293

--- Comment #7 from rmacklem@uoguelph.ca ---
Created attachment 164831
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D164831&action=
=3Dedit
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194293-3630-X0cNJwQfI4>