summaryrefslogtreecommitdiff
path: root/scripts/blockdiff.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-11-04 15:49:53 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-31 14:19:54 -0700
commit21ec92f9356a7f486ba7ce017b9aa557323e7050 (patch)
tree9f1163923dac3114158e769a925d22ac950db2d4 /scripts/blockdiff.py
parent69583ba50b96d51c7206e834ff165a871c7f2ffd (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=b:34284069 TEST=Added unittests. Change-Id: I9ed52b429a54a2b4d6edaba051284b7dcd8a9525 (cherry picked from commit a48f630400429ca010c5462967607985f2ffa7e4) Reviewed-on: https://chromium-review.googlesource.com/641958 Commit-Ready: Amin Hassani <ahassani@chromium.org> Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Ben Chan <benchan@chromium.org> Reviewed-by: Sen Jiang <senj@chromium.org>
Diffstat (limited to 'scripts/blockdiff.py')
0 files changed, 0 insertions, 0 deletions