Merge "mkdir .incomplete in backing storage to fix CTS/GTS failures" am: cb5c02da8b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1536324 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I0df20b01545ac8c0a2e5476509db069258bb7462
This commit is contained in:
@@ -476,6 +476,9 @@ StorageId IncrementalService::createStorage(std::string_view mountPoint,
|
|||||||
if (!mkdirOrLog(path::join(backing, ".index"), 0777)) {
|
if (!mkdirOrLog(path::join(backing, ".index"), 0777)) {
|
||||||
return kInvalidStorageId;
|
return kInvalidStorageId;
|
||||||
}
|
}
|
||||||
|
if (!mkdirOrLog(path::join(backing, ".incomplete"), 0777)) {
|
||||||
|
return kInvalidStorageId;
|
||||||
|
}
|
||||||
auto status = mVold->mountIncFs(backing, mountTarget, 0, &controlParcel);
|
auto status = mVold->mountIncFs(backing, mountTarget, 0, &controlParcel);
|
||||||
if (!status.isOk()) {
|
if (!status.isOk()) {
|
||||||
LOG(ERROR) << "Vold::mountIncFs() failed: " << status.toString8();
|
LOG(ERROR) << "Vold::mountIncFs() failed: " << status.toString8();
|
||||||
|
|||||||
Reference in New Issue
Block a user