summaryrefslogtreecommitdiff
path: root/scripts/blockdiff.py
diff options
context:
space:
mode:
authorAmin Hassani <ahassani@google.com>2017-09-20 12:11:39 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-01-03 14:23:33 -0800
commitd9cb290966a77730010aa01f0db675c157cd5c8f (patch)
treed3aa53c2dfcff84bfda81bc0abd2b4d541bab4c5 /scripts/blockdiff.py
parentb9e91efc7f9b5bb7cb839e9c50c5969eb0f824e8 (diff)
update_engine: Unify disk access for SOURCE_BSDIFF through update_engine
Switch bspatch to use ExtentReader and ExtentWriter. This allows to: - Cache the writes. - Unify all the reads through ExtentReader object. - Unify all the writes through ExtentWrite object. This patch allows running bspatch without being dependent on how bspatch reads and writes from disk. The disk access can be controlled through update_engine itself. Currently, SOURCE_BSDIFF operation can still cause bugs such as b/31709028. But through this mechanism, those kind of problems can be alleviated. BUG=chromium:762815 TEST=unittests pass; brillo_update_payload verify passes; Change-Id: I3f8e29366743d0383d41bf3700e9db3135fbd82a Reviewed-on: https://chromium-review.googlesource.com/683357 Commit-Ready: Amin Hassani <ahassani@chromium.org> Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Ben Chan <benchan@chromium.org>
Diffstat (limited to 'scripts/blockdiff.py')
0 files changed, 0 insertions, 0 deletions