summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul Lawrence <paullawrence@google.com> 2020-11-20 13:15:56 -0800
committer Paul Lawrence <paullawrence@google.com> 2020-11-20 13:18:01 -0800
commit87a92e1bc571bf54e7fef1bf2dfdd4d95ff20d44 (patch)
treed77df5d09ee9387f4ed7cc3ccde13c19aa502cf1
parente5dded6f024ee4b87a6bb59eb5de8eda427b2a43 (diff)
incfs: Create incomplete folder
incfs 2 also creates a .incomplete folder, so we need to set correct permissions on that folder too Bug: 169084168 Test: With updated kernel, incfs_test works and adb install --incremental works Change-Id: Id7b9d017973777e37628664530dfed18c55c269f
-rw-r--r--services/incremental/IncrementalService.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/incremental/IncrementalService.cpp b/services/incremental/IncrementalService.cpp
index 599ac9344e73..99795576696d 100644
--- a/services/incremental/IncrementalService.cpp
+++ b/services/incremental/IncrementalService.cpp
@@ -481,6 +481,9 @@ StorageId IncrementalService::createStorage(std::string_view mountPoint,
if (!mkdirOrLog(path::join(backing, ".index"), 0777)) {
return kInvalidStorageId;
}
+ if (!mkdirOrLog(path::join(backing, ".incomplete"), 0777)) {
+ return kInvalidStorageId;
+ }
auto status = mVold->mountIncFs(backing, mountTarget, 0, &controlParcel);
if (!status.isOk()) {
LOG(ERROR) << "Vold::mountIncFs() failed: " << status.toString8();