platform_system_core/fs_mgr/libsnapshot
Daniel Rosenberg 770099bde1 libsnapshot: Add cluster breaks after ops
Previously, we'd check if a new cluster was needed before we added a Cow
Operation. This would cause an op's associated data to go to the wrong
location, so instead we check if we'll need a new cluster after writing
each op.

Bug: 172026020
Test: cow_api_test (ClusterCompressGz)
Change-Id: Ia43afedcfd430961b34f5914da4265b89e6fadb9
2020-12-22 21:43:26 -08:00
..
android/snapshot libsnapshot: Add a compression bit to SnapshotUpdateStatus. 2020-11-22 21:48:29 +00:00
corpus libsnapshot_fuzzer: add initial corpus 2020-05-06 17:10:34 -07:00
include/libsnapshot libsnapshot: Don't export snapuserd server includes. 2020-12-14 00:41:18 -08:00
include_test/libsnapshot libsnapshot: Remove special-case code for first-stage init. 2020-11-23 04:14:08 +00:00
update_engine libsnapshot: Use the COW size from the update manifest. 2020-11-02 13:24:16 -08:00
Android.bp Merge changes from topic "snapuserd-gflags" 2020-12-15 21:05:24 +00:00
cow_api_test.cpp libsnapshot: Add cluster breaks after ops 2020-12-22 21:43:26 -08:00
cow_decompress.cpp libsnapshot: Add support for brotli compression. 2020-09-15 16:15:33 -07:00
cow_decompress.h libsnapshot: Add support for brotli compression. 2020-09-15 16:15:33 -07:00
cow_format.cpp libsnapshot: Group CowOperations into clusters 2020-12-02 21:31:22 -08:00
cow_reader.cpp libsnapshot: Remove misleading message 2020-12-14 17:12:07 -08:00
cow_snapuserd_test.cpp snapuserd: Use gflags for arguments. 2020-12-14 00:42:25 -08:00
cow_writer.cpp libsnapshot: Add cluster breaks after ops 2020-12-22 21:43:26 -08:00
device_info.cpp libsnapshot: Remove special-case code for first-stage init. 2020-11-23 04:14:08 +00:00
device_info.h libsnapshot: Remove special-case code for first-stage init. 2020-11-23 04:14:08 +00:00
dm_snapshot_internals.h pragma once for header file 2019-10-28 16:38:35 +00:00
estimate_cow_from_nonab_ota.cpp reland: Rename Flush to Finalize 2020-10-22 02:34:26 -07:00
fuzz.sh Rename native code coverage paths env. variable in libsnapshot's fuzz test. 2020-06-10 13:04:53 +01:00
fuzz_utils.cpp libsnapshot_fuzzer: use protobuf 2020-04-30 23:05:36 -07:00
fuzz_utils.h Reland "libsnapshot_fuzzer: Add tests" 2020-05-15 14:34:01 -07:00
inspect_cow.cpp libsnapshot: Add silent option to inspect_cow 2020-12-02 21:31:22 -08:00
make_cow_from_ab_ota.cpp libsnapshot: Support cluster_ops in make_cow_from_ab_ota 2020-12-02 21:31:23 -08:00
OWNERS Add balsini@ as libsnapshot owner 2020-01-09 10:11:45 +00:00
partition_cow_creator.cpp libsnapshot: Round compressed COW sizes to the nearest block. 2020-11-06 00:50:34 -08:00
partition_cow_creator.h libsnapshot: Use the COW size from the update manifest. 2020-11-02 13:24:16 -08:00
partition_cow_creator_test.cpp libsnapshot: Use the COW size from the update manifest. 2020-11-02 13:24:16 -08:00
power_test.cpp libsnapshot: Add a simple script and gtest to simulate power failures during snapshot-merge. 2020-04-14 23:32:38 -07:00
PowerTest.md libsnapshot: Add a simple script and gtest to simulate power failures during snapshot-merge. 2020-04-14 23:32:38 -07:00
return.cpp libsnapshot: delete WaitForMerge. 2020-03-03 13:19:49 -08:00
run_power_test.sh libsnapshot: Add a simple script and gtest to simulate power failures during snapshot-merge. 2020-04-14 23:32:38 -07:00
snapshot.cpp libsnapshot: Remove special-case code for first-stage init. 2020-11-23 04:14:08 +00:00
snapshot_fuzz.cpp Use more inclusive language for #inclusivefixit 2020-07-23 11:13:37 -07:00
snapshot_fuzz_utils.cpp libsnapshot_fuzzer: Properly unmap images 2020-05-15 17:05:26 -07:00
snapshot_fuzz_utils.h libsnapshot: Remove special-case code for first-stage init. 2020-11-23 04:14:08 +00: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_reader.cpp libsnapshot: Group CowOperations into clusters 2020-12-02 21:31:22 -08:00
snapshot_reader.h libsnapshot: Implement OpenReader for CompressedSnapshotWriter. 2020-10-26 22:30:21 -07:00
snapshot_reader_test.cpp libsnapshot: Add Initialize and InitializeAppend methods to ISnapshotWriter. 2020-10-26 22:30:21 -07:00
snapshot_stats.cpp libsnapshot: Export COW image size 2020-05-29 23:19:39 +00:00
snapshot_stub.cpp libsnapshot: Add a skeleton API for mapping and unmapping all snapshots. 2020-10-27 18:30:13 -07:00
snapshot_test.cpp libsnapshot: Remove special-case code for first-stage init. 2020-11-23 04:14:08 +00:00
snapshot_writer.cpp libsnapshot: Remove Initialize(fd, APPEND) 2020-11-05 18:38:58 -08:00
snapshotctl.cpp libsnapshot: delete InitiateMergeAndWait. 2020-03-09 16:14:30 -07:00
snapuserd.cpp libsnapshot: Don't export snapuserd server includes. 2020-12-14 00:41:18 -08:00
snapuserd.h libsnapshot: Don't export snapuserd server includes. 2020-12-14 00:41:18 -08:00
snapuserd.rc libsnapshot: Add .rc file for snapuserd. 2020-10-21 00:41:45 -07:00
snapuserd_client.cpp libsnaphot: Refactor cow_snapuserd test 2020-12-01 20:46:01 +00:00
snapuserd_daemon.cpp snapuserd: Add a no-socket mode. 2020-12-14 00:48:50 -08:00
snapuserd_daemon.h snapuserd: Add a no-socket mode. 2020-12-14 00:48:50 -08:00
snapuserd_server.cpp snapuserd: Add a no-socket mode. 2020-12-14 00:48:50 -08:00
snapuserd_server.h snapuserd: Add a no-socket mode. 2020-12-14 00:48:50 -08:00
test_helpers.cpp libsnapshot: Partially implement OpenSnapshotWriter. 2020-10-14 21:41:36 -07:00
utility.cpp libsnapshot: Use the COW size from the update manifest. 2020-11-02 13:24:16 -08:00
utility.h libsnapshot: Use the COW size from the update manifest. 2020-11-02 13:24:16 -08:00