diff options
| author | Alex Deymo <deymo@google.com> | 2016-11-04 15:49:53 -0700 |
|---|---|---|
| committer | Alex Deymo <deymo@google.com> | 2017-08-28 12:18:35 +0000 |
| commit | a48f630400429ca010c5462967607985f2ffa7e4 (patch) | |
| tree | 028f9315021096dcea0e591aa8096464c2a586f6 /scripts/update_device.py | |
| parent | 4136062ed805d8d078998e3a3cff56754c474396 (diff) | |
Move extent copy and hash logic to a new file.
The SOURCE_COPY operation used to copy the source blocks one by one to
the target partition. This process is sub-optimal if there are several
consecutive blocks. This patch moves this copy and hash logic to a new
file and adds several unittests for it. The new logic copies in chunks
of up to 1MiB when the source and target data is contiguous.
Bug: 34284069
Test: Added unittests.
Change-Id: I9ed52b429a54a2b4d6edaba051284b7dcd8a9525
Diffstat (limited to 'scripts/update_device.py')
0 files changed, 0 insertions, 0 deletions
