Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eda3fc73 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libsnapshot: GetReminingTime not required after mapping dm-user" into...

Merge "libsnapshot: GetReminingTime not required after mapping dm-user" into main am: de5ba5c4 am: 649a7903

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2657044



Change-Id: I604653c73977c4e92f2da47ba6d619888e392f8d
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 44a86be0 649a7903
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2490,9 +2490,6 @@ bool SnapshotManager::MapPartitionWithSnapshot(LockedFile* lock,
        }
        created_devices.EmplaceBack<AutoUnmapDevice>(&dm_, name);

        remaining_time = GetRemainingTime(params.timeout_ms, begin);
        if (remaining_time.count() < 0) return false;

        cow_device = new_cow_device;
    }

@@ -2507,6 +2504,9 @@ bool SnapshotManager::MapPartitionWithSnapshot(LockedFile* lock,
    // the user-space will not start the merge. We have to explicitly inform the
    // daemon to resume the merge. Check ProcessUpdateState() call stack.
    if (!UpdateUsesUserSnapshots(lock)) {
        remaining_time = GetRemainingTime(params.timeout_ms, begin);
        if (remaining_time.count() < 0) return false;

        std::string path;
        if (!MapSnapshot(lock, params.GetPartitionName(), base_device, cow_device, remaining_time,
                         &path)) {