Merge "snapshotctl: Check device for -img path" into main am: 536aa62490
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3257311 Change-Id: I0930a0d6302044ec670211152765b291d02a479c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
2037a1d4c8
1 changed files with 2 additions and 0 deletions
|
|
@ -255,6 +255,8 @@ bool MapSnapshots::GetCowDevicePath(std::string partition_name, std::string* cow
|
|||
}
|
||||
|
||||
LOG(INFO) << "Failed to find cow path: " << cow_device << " Checking the device for -img path";
|
||||
// If the COW device exists only on /data
|
||||
cow_device = partition_name + "-cow-img";
|
||||
if (!dm.GetDmDevicePathByName(cow_device, cow_path)) {
|
||||
LOG(ERROR) << "Failed to cow path: " << cow_device;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue