Open/create files that are opened with O_WRONLY with O_RDWR instead.

When the writeback cache for FUSE is enabled, the kernel may have to
generate read requests to fetch up-to-date pages for use in the cache
(in case of partial writes). This means that when we receive a request
to open or create a file with O_WRONLY, we need to open the underlying
file with O_RDWR.

Bug: 149039466
Test: atest FuseDaemonHostTest
Change-Id: I4a6f1f829b57d79dd8413d203783a4511d16d094
1 file changed