commit | 2d7f1be4b4e181c13465a9447f02ee07651bbeea | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Sat Feb 15 07:44:12 2020 +0100 |
committer | Martijn Coenen <maco@google.com> | Sat Feb 15 21:33:36 2020 +0100 |
tree | 1be0fa9ecba13bbd95d5ec30b0983d3b2b442750 | |
parent | e3d6abbb63ad2395492b281e25a14b792e80b7ba [diff] |
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