libsnapshot: set header max_compression

Intermediate CL needed before variable block size can land. Since v3 is
enabled on cuttlefish, the base build needs to write the
compression_factor in order for reader to properly parse. Otherwise
we'll fail OTA test

Test: th
Change-Id: Ia353aae8e668858851073f09308909ae70d7854e
This commit is contained in:
Daniel Zheng 2024-01-30 21:30:48 -08:00
parent 700ff706f1
commit bcce91603b

View file

@ -110,6 +110,7 @@ void CowWriterV3::SetupHeaders() {
header_.op_count = 0;
header_.op_count_max = 0;
header_.compression_algorithm = kCowCompressNone;
header_.max_compression_size = options_.compression_factor;
return;
}