-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[io] Harmonize Query.GetInfo and QueryFilesystem.
Previously there were two different FilesystemInfo structs, one for fuchsia.fs.Query.GetInfo() and one for fuchsia.io.admin.DirectoryAdmin.QueryFilesystem(). These were similar but not identical. This patch unifies on the fuchsia.io struct version and updates all callers. A high-level version of this struct is implemented in the C++ VFS for the convenience of the filesystems. The fuchsia.fs version uses resource tables which are more forward- compatible. But there are two reasons to use the struct version: - Currently the C++ bindings for resource tables in LLCPP is difficult to use and error-prone. All implementations and consumers of this function currently use LLCPP. This will hopefully be improved in the future with some planned FIDL bindings changes. - The vast majority of implementations and callers are for the fuchsia.io version. This version also has some binary compatibility guarantees that require it be changed in multiple steps over a period of time. Therefore, we could not do the opposite patch to unify on the resource table version without more steps in between. As a result, this patch currently tries only to solve the problem of there being more than one FilesystemInfo implementation, and we can address any limitations of this existing struct as they come up. Bug: 84558 Change-Id: I16dcbb25c614c4921073dba46d39111c52c64510 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/606665 Reviewed-by: Adam Barth <abarth@google.com> Reviewed-by: Chris Suter <csuter@google.com> API-Review: Adam Barth <abarth@google.com> Commit-Queue: Brett Wilson <brettw@google.com>
- Loading branch information
Showing
4 changed files
with
68 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters