summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2020-09-21 16:34:25 -0700
committerDavid Anderson <dvander@google.com>2020-10-14 21:41:36 -0700
commit1331ac473f84e2eccdb0ac18d1976d20c27e37a4 (patch)
tree95e68714f2bcc4335bd98560e09d0e335e3fec26 /trusty/coverage/coverage_test.cpp
parent3b41582667b13c6d1deaf8b1abbf2ef970d77484 (diff)
libsnapshot: Partially implement OpenSnapshotWriter.
This is a re-landing of the original CL, with a few changes: - The correct device is now returned in MapUpdateSnapshot. - The old API is used for tests, and the new API is only tested when used on a VABC device. - A sync() call has been added to ensure that writes to the base and target snapshot devices have been fully flushed. This makes IsPartitionUnchanged detect the MapUpdateSnapshot bug. Implement OpenSnapshotWriter for non-compressed Virtual A/B. This is done by adding an OnlineKernelSnapshotWriter class, which forwards all writes to a dm-snapshot block device. This also introduces a new ISnapshotWriter class which extends ICowWriter, and adds features specific to libsnapshot (versus ICowWriter which is intended only for the new COW format). The OpenSnapshotReader call has been moved here since the writer retains all the information needed to create the reader. To test the new call, vts_libsnapshot_test has been modified to use OpenSnapshotWriter. As part of this change, all consumers of libsnapshot must now link to libsnapshot_cow. Bug: 168554689 Test: vts_libsnapshot_test Test: full OTA with update_device.py Test: incremental OTA with update_device.py Change-Id: I90364a58902a4406a37cb14a816642c57a72bec2
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions