summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorAkilesh Kailash <akailash@google.com>2021-04-18 18:24:54 +0000
committerAkilesh Kailash <akailash@google.com>2021-04-30 06:46:47 +0000
commit150bcbf7c6aa4d47cfef9525dd4321801f8a3786 (patch)
tree0e0efd44839dce85800f054c7822bf9261cc5af1 /trusty/coverage/coverage.cpp
parent580312bc953a61cf1b7d2d1d082ece759844bfcb (diff)
libsnapshot: Flush data to scratch space only for overlapping regions
When read-ahead thread caches the data from base device, flush the data only if there are overlapping regions. If there is crash, subsequent reboot will not recover the data from scratch space. Rather, data will be re-constructed from base device. Additionally, allow batch merge of blocks by the kernel even for overlapping region given that we have the read-ahead thread taking care of the overlapping blocks. Bug: 183863613 Test: 1: Incremental OTA from build 7284758 to 7288239. Merge time reduces from ~6 minutes to ~2.5 minutes 2: Reboot and crash kernel multiple times when merge was in progress 3: Verify read-ahead thread re-constructs the data for overlapping region. Signed-off-by: Akilesh Kailash <akailash@google.com> Change-Id: I50e0d828f4fb36a23f0ca13b07a73229ba68874d
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions