summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2021-01-06 21:07:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-01-06 21:07:51 +0000
commit6abbb55c5218d165a8de4a750154dc83e998b53c (patch)
tree62f524239f6f4c778722efa2c2d68c7c7e979c16
parentba91a671b1143506ea5262b870d899310f942327 (diff)
parent977b09c76720226cf5756d87b9cd274081c9b150 (diff)
downloadbase-6abbb55c5218d165a8de4a750154dc83e998b53c.tar.gz
Merge "Snap for 7066293 from f6e442814abf261be425218323ea2dff075b5a67 to android11-tests-release" into android11-tests-releaseandroid-cts-11.0_r3
-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 a5f0d045948c..338ede283e1a 100644
--- a/services/incremental/IncrementalService.cpp
+++ b/services/incremental/IncrementalService.cpp
@@ -476,6 +476,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();