summaryrefslogtreecommitdiff
path: root/services/incremental/ServiceWrappers.cpp
diff options
context:
space:
mode:
author Yurii Zubrytskyi <zyy@google.com> 2021-03-18 14:21:54 -0700
committer Yurii Zubrytskyi <zyy@google.com> 2021-03-18 14:24:21 -0700
commit256a1a450402fde4a958c7680600d2c94c7c737e (patch)
tree97eb9035c7e4c6bf73ca6da717c672dbb229467b /services/incremental/ServiceWrappers.cpp
parent463ec227c62975953cd298259b88d640c755d7ca (diff)
[incfs] Use the new libincfs API for file status checking
libincfs got a new set of functions for checking the file loaded status, which works more efficiently than getting filled ranges. Bug: 183067554 Test: atest IncrementalServiceTest Change-Id: I3b96bf409f1778c5a89e4802e2005197f70ce0cb
Diffstat (limited to 'services/incremental/ServiceWrappers.cpp')
-rw-r--r--services/incremental/ServiceWrappers.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/incremental/ServiceWrappers.cpp b/services/incremental/ServiceWrappers.cpp
index 2a061226b713..eb204c5466e0 100644
--- a/services/incremental/ServiceWrappers.cpp
+++ b/services/incremental/ServiceWrappers.cpp
@@ -197,6 +197,13 @@ public:
}
return {filledBlockCount, totalBlocksCount};
}
+ incfs::LoadingState isFileFullyLoaded(const Control& control,
+ std::string_view path) const final {
+ return incfs::isFullyLoaded(control, path);
+ }
+ incfs::LoadingState isEverythingFullyLoaded(const Control& control) const final {
+ return incfs::isEverythingFullyLoaded(control);
+ }
ErrorCode link(const Control& control, std::string_view from, std::string_view to) const final {
return incfs::link(control, from, to);
}