platform_system_core/fs_mgr/libsnapshot
Daniel Rosenberg ce69f2985b libsnapshot: Don't try to truncate block devices
When we're writing to a block device, we can't truncate. Ignore those
commands. Truncate mostly just saves time in the read phase by chopping
off unused data in the event finalize wasn't called.

Bug: 172026020
Test: cow_api_test
Change-Id: I3befc71fa9597edf8243d0f9e17440db91409aea
2020-11-11 15:49:18 -08:00
..
android/snapshot libsnapshot: proto use correct index 2020-05-29 16:21:40 -07:00
corpus libsnapshot_fuzzer: add initial corpus 2020-05-06 17:10:34 -07:00
include/libsnapshot libsnapshot: Don't try to truncate block devices 2020-11-11 15:49:18 -08:00
include_test/libsnapshot libsnapshot: Add support for first-to-second-stage transitions of snapuserd. 2020-11-02 13:24:05 -08:00
update_engine libsnapshot: Use the COW size from the update manifest. 2020-11-02 13:24:16 -08:00
Android.bp libsnapshot: Use the COW size from the update manifest. 2020-11-02 13:24:16 -08:00
cow_api_test.cpp libsnapshot: Remove Initialize(fd, APPEND) 2020-11-05 18:38:58 -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 Switch up Cow Format to be resumable 2020-10-22 21:26:27 -07:00
cow_reader.cpp libsnapshot:snapuserd: Snapshot merge support. 2020-11-10 03:54:52 +00:00
cow_snapuserd_test.cpp libsnapshot:snapuserd: Fix cow_snapuserd_test. 2020-11-06 22:10:10 +00:00
cow_writer.cpp libsnapshot: Don't try to truncate block devices 2020-11-11 15:49:18 -08:00
device_info.cpp libsnapshot: Restrict when snapshots can be deleted. 2020-02-05 17:16:17 -08:00
device_info.h libsnapshot: Add a helper for handling data wipes in recovery. 2019-11-10 23:07:11 -08: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 a tool for inspecting COW files. 2020-10-27 18:30:13 -07:00
make_cow_from_ab_ota.cpp reland: Rename Flush to Finalize 2020-10-22 02:34:26 -07: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: Use the COW size from the update manifest. 2020-11-02 13:24:16 -08: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 Use more inclusive language for #inclusivefixit 2020-07-23 11:13:37 -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_reader.cpp libsnapshot: Fix broken iterator in CompressedSnapshotReader. 2020-11-06 15:10:41 -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: Use the COW size from the update manifest. 2020-11-02 13:24:16 -08: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:snapuserd: Snapshot merge support. 2020-11-10 03:54:52 +00:00
snapuserd.rc libsnapshot: Add .rc file for snapuserd. 2020-10-21 00:41:45 -07:00
snapuserd_client.cpp libsnapshot: Add support for first-to-second-stage transitions of snapuserd. 2020-11-02 13:24:05 -08:00
snapuserd_daemon.cpp snapuserd: Refactor daemon/server. 2020-10-22 22:00:17 -07:00
snapuserd_server.cpp libsnapshot: Add support for first-to-second-stage transitions of snapuserd. 2020-11-02 13:24:05 -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