mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
5c4e0347e1
In some circumstances, it's possible that the buffered data isn't fully consumed by the filesystem. Before handling the next request, we need to drain the residual. This change also moves the reader/writer/mapper out of the loop, since we intend to not duplicate the FDs for each interation, and prefer to reuse the buffer / avoid re-allocation anyway. This allows us to implement `drain` in DevFuseReader. BUG=b:196264590 TEST=fsverity measure a filesystem without ioctl impl, the filesystem does not crash any more Cq-Depend: chromium:3105916 Change-Id: Ib758c98e6d7b4ce1391c51db19c120a4cec09dff Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3092409 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Victor Hsieh <victorhsieh@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |