diff options
author | Tom Marshall <tdm@cyngn.com> | 2014-12-16 14:06:02 -0800 |
---|---|---|
committer | Tom Marshall <tdm@cyngn.com> | 2015-11-25 15:34:35 -0800 |
commit | 40b9e54a3c05111a64159645170f67a9153dbcd5 (patch) | |
tree | b0cd18a4effc43edb3d492586b9394336282637f /fuse_sideload.h | |
parent | 423f1e94f58891347d06b7a881ce6b1e67ac8339 (diff) | |
download | bootable_recovery-40b9e54a3c05111a64159645170f67a9153dbcd5.zip bootable_recovery-40b9e54a3c05111a64159645170f67a9153dbcd5.tar.gz bootable_recovery-40b9e54a3c05111a64159645170f67a9153dbcd5.tar.bz2 |
recovery: Provide caching for sideload files
Create a cache of block data received via adb. The cache size is set
to ensure that there is at least 100mb available for the installer.
When the cache is large enough to hold the entire file, each block is
read via adb at most once.
When the cache is not large enough to hold the entire file, the cache
will need to be pruned. Because files tend to be read sequentially
during install, the pruning algorithm attempts to discard blocks that
are behind the current file position.
Change-Id: Id8fc7fa5b38f1d80461eb576b1a1b5d53453cfc1
Diffstat (limited to 'fuse_sideload.h')
0 files changed, 0 insertions, 0 deletions