commit | bf8745c41d9169aac125f7f65482124496a28d72 | [log] [tgz] |
---|---|---|
author | Brandon Castellano <bcastell@google.com> | Mon Jan 30 20:42:14 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 30 20:42:14 2023 +0000 |
tree | 101303cb483eb45eb79673fa1fea1564bc20b2ad | |
parent | 940c114e0c4947a2ba466d93f4635f09c2c8f94b [diff] |
[vfs][rust] Refactor VmoFile Implement VmoFile in terms of File and remove duplicated connection handling logic. Remove use of generics for VmoFile struct by using dynamic dispatch for asynchronous construction via delegate trait. This improves compile times and allows for both synchronous and asynchronous use of VmoFile from the same type. Allow construction of a VmoFile from an existing Vmo. Remove now redundant ReadOnlyVmoFile. Enforce seek offset consistency for files using the Rust VFS. This ensures seeking past 2^64 - 1 bytes will result in OUT_OF_RANGE rather than silent truncation. This behavior is still not consistent with that defined in http://fxbug.dev/100754 but ensures the internal state remains valid. Bug: 99448 Test: fx test vfs-tests fuchsia-pkg://fuchsia.com/rustvfs-io1-conformance-test Change-Id: I915e5ca25677be54d6bbe5905f8b770ec3a2b86c Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/679622 Reviewed-by: Tamir Duberstein <tamird@google.com> Reviewed-by: Stephen Demos <sdemos@google.com> Commit-Queue: Brandon Castellano <bcastell@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.