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:
Treehugger Robot 2024-09-06 01:26:31 +00:00 committed by Automerger Merge Worker
commit 2037a1d4c8

View file

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