platform_system_core/fs_mgr/libsnapshot
Daniel Zheng 7a9e007a01 Refactor off COW header v3
Cow reader will store header v3 in memory. ReadCowHeader can remain
mostly unchanged since the cow prefix is the same.
header->prefix.header_size will then tell us if we're reading a v3 or v2
header. v3 header is strictly a superset of v2 header so we can read a
v2 header into a v3 struct.

Added a test case to test_v3 where we write a header using v2_writer and
ensure CowReader is able to read it.

Test: cow_api_test
Change-Id: I142f18d871322930b7dc341c342c8b63a481341c
2023-10-17 16:45:06 -07:00
..
android/snapshot Remove the libsnapshot fuzzer. 2023-03-09 08:35:49 -08:00
include/libsnapshot Refactor off COW header v3 2023-10-17 16:45:06 -07:00
include_test/libsnapshot libsnapshot: Remove ISnapshotWriter. 2023-06-14 12:03:58 -07:00
libsnapshot_cow Refactor off COW header v3 2023-10-17 16:45:06 -07:00
scripts Add LOCAL_LICENSE_KINDS to system/core/fs_mgr 2021-09-15 10:57:11 -07:00
snapuserd Merge "libsnapshot: Remove consistency check after merge" into main 2023-10-17 01:31:07 +00:00
tools Add write_cow functionality 2023-10-17 12:47:19 -07:00
Android.bp Add v3 writer 2023-10-09 13:31:19 -07:00
device_info.cpp Convert fastboot/libsnapshot to new BootControl client 2022-07-08 10:57:53 -07:00
device_info.h Convert fastboot/libsnapshot to new BootControl client 2022-07-08 10:57:53 -07:00
dm_snapshot_internals.h libsnapshot: Use std::unordered_set in DmSnapCowSizeCalculator. 2021-07-30 11:02:28 -07:00
OWNERS Update bug component from Android Systems to OTA client 2023-08-22 10:18:47 +01:00
partition_cow_creator.cpp Merge "libsnapshot: fix integer overflow when calculating sector id." 2022-08-02 18:59:04 +00:00
partition_cow_creator.h Initialize COW options using update manifest 2023-02-23 13:21:20 -08:00
partition_cow_creator_test.cpp libsnapshot: Clarify the meaning of "compression.enabled". 2022-07-27 18:32:15 -07:00
return.cpp
snapshot.cpp Refactor off COW header v3 2023-10-17 16:45:06 -07:00
snapshot_metadata_updater.cpp Merge "libsnapshot: Properly set partial_update_" 2020-07-31 23:02:05 +00:00
snapshot_metadata_updater.h Update libsnapshot to handle partial update 2020-06-09 12:53:45 -07:00
snapshot_metadata_updater_test.cpp libsnapshot_test: skip global setup on non-VAB devices. 2020-08-06 17:21:50 -07:00
snapshot_stats.cpp libsnapshot: Add more feature flags to SnapshotMergeReport. 2022-05-25 13:40:31 -07:00
snapshot_stub.cpp libsnapshot: Remove ISnapshotWriter. 2023-06-14 12:03:58 -07:00
snapshot_test.cpp libsnapshot: Remove consistency check after merge 2023-10-16 11:32:54 -07:00
snapshotctl.cpp libsnapshot_cow: Prepare device to boot from pre-created snapshots 2023-09-08 23:09:45 -07:00
test_helpers.cpp libsnapshot: Remove ISnapshotWriter. 2023-06-14 12:03:58 -07:00
utility.cpp libsnapshot: Fix test failures on certain configurations. 2023-03-06 23:21:25 +00:00
utility.h libsnapshot: Fix test failures on certain configurations. 2023-03-06 23:21:25 +00:00
vts_ota_config_test.cpp Some device that platform base on android12 doesn't support A/B update, it looks virtual A/B is also not mandatory. so this test case should check ro.vendor.api_level first. 2022-09-17 06:47:02 +00:00