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

Commit 25de5794 authored by Daniel Zheng's avatar Daniel Zheng
Browse files

libsnapshot: log compression algorithm

Log the compression algorithm and compression factor used during OTA for easier debugging

Test: th
Change-Id: Ic50989d7e233983d6299163fc647eb739a0b7cb2
parent 4f5a9950
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -121,7 +121,6 @@ bool CowWriterV3::ParseOptions() {
        return false;
    }

    LOG(INFO) << "Compression factor: " << header_.max_compression_size;
    num_compress_threads_ = std::max(int(options_.num_compress_threads), 1);
    auto parts = android::base::Split(options_.compression, ",");
    if (parts.size() > 2) {
+2 −0
Original line number Diff line number Diff line
@@ -3242,6 +3242,8 @@ Return SnapshotManager::CreateUpdateSnapshots(const DeltaArchiveManifest& manife
            // Older OTAs don't set an explicit compression type, so default to gz.
            compression_algorithm = "gz";
        }
        LOG(INFO) << "using compression algorithm: " << compression_algorithm
                   << ", max compressible block size: " << compression_factor;
    }

    PartitionCowCreator cow_creator{