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
This commit is contained in:
Paul Lawrence
2020-11-20 13:15:56 -08:00
parent e5dded6f02
commit 87a92e1bc5

View File

@@ -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();