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

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

Merge "Log the CowOperation when decompression failed" into main am:...

Merge "Log the CowOperation when decompression failed" into main am: e8778855 am: 95879d3e am: 176de7bb am: 67c400e2

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



Change-Id: Iadca6c79b33959002d1a1e677d68bbdb0a123594
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 2cdc3fde 67c400e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -103,7 +103,7 @@ bool WorkerThread::ProcessReplaceOp(const CowOperation* cow_op) {
    ssize_t rv = reader_->ReadData(cow_op, buffer, BLOCK_SZ);
    ssize_t rv = reader_->ReadData(cow_op, buffer, BLOCK_SZ);
    if (rv != BLOCK_SZ) {
    if (rv != BLOCK_SZ) {
        SNAP_LOG(ERROR) << "ProcessReplaceOp failed for block " << cow_op->new_block
        SNAP_LOG(ERROR) << "ProcessReplaceOp failed for block " << cow_op->new_block
                        << ", return = " << rv;
                        << ", return = " << rv << ", COW operation = " << *cow_op;
        return false;
        return false;
    }
    }
    return true;
    return true;
+2 −1
Original line number Original line Diff line number Diff line
@@ -283,7 +283,8 @@ bool ReadWorker::ReadAlignedSector(sector_t sector, size_t sz) {
                // We found the sector in mapping. Check the type of COW OP and
                // We found the sector in mapping. Check the type of COW OP and
                // process it.
                // process it.
                if (!ProcessCowOp(it->second, buffer)) {
                if (!ProcessCowOp(it->second, buffer)) {
                    SNAP_LOG(ERROR) << "ProcessCowOp failed";
                    SNAP_LOG(ERROR)
                            << "ProcessCowOp failed, sector = " << sector << ", size = " << sz;
                    return false;
                    return false;
                }
                }