Lines Matching full:blocks
244 # total_blocks: the total size of the partition/image, in blocks.
246 # care_map: a RangeSet containing which blocks (in the range [0,
247 # total_blocks) we actually care about; i.e. which blocks contain
250 # file_map: a dict that partitions the blocks contained in care_map
255 # clobbered_blocks: a RangeSet containing which blocks contain data
260 # data contained in the image blocks of that RangeSet. The data
270 # hash of all the data in the image (ie, all the blocks in the
272 # blocks if include_clobbered_blocks is True).
302 # The updater code that installs the patch always uses 4k blocks.
349 """Limit the size of operand in command 'new' and 'zero' to 1024 blocks.
367 # In BBOTA v3+, it uses the hash of the stashed blocks as the stash slot
392 # <# blocks> <src ranges>
394 # <# blocks> <src ranges> <src locs> <stash refs...>
396 # <# blocks> - <stash refs...>
447 # take into account automatic stashing of overlapping blocks
464 # take into account automatic stashing of overlapping blocks
508 # Zero out extended blocks as a workaround for bug 20881595.
514 # We erase all the blocks on the partition that a) don't contain useful
516 # blocks, we erase the ones that won't be used in this update at the
519 # get starving for clean blocks and thus fail the update. (b/28347095)
546 print("max stashed blocks: %d (%d bytes), "
551 print("max stashed blocks: %d (%d bytes), limit: <unknown>\n" % (
569 # Compute the maximum blocks available for stash based on /cache size and
627 # Add up blocks that violates space limit and print total number to
642 print(" Total %d blocks (%d bytes) are packed as new blocks due to "
667 # the same content but be broken up into blocks differently, eg:
693 # data is stored with blocks in increasing order), and
694 # - we haven't removed any blocks from the source set.
697 # blocks in the set together in order will produce a valid
813 # Start with no blocks having been touched yet.
818 # Check that the input blocks for this transfer haven't yet been touched.
825 # Source image could be larger. Don't check the blocks that are in the
831 # Check that the output blocks for this transfer haven't yet
832 # been touched, and touch all the blocks written by this
900 # it doesn't, boo. trim the blocks that u writes from xf's
915 "%d source blocks removed.") %
922 """Reverse unsatisfying edges and compute pairs of stashed blocks.
924 For each transfer, make sure it properly stashes the blocks it touches and
926 record the blocks to be stashed. 'stash_raw_id' is an id that uniquely
930 blocks will be written to the same stash slot in WriteTransfers().
946 # it doesn't, boo. modify u to stash the blocks that it
966 "%d source blocks stashed.") %
981 # case each edge has a weight which is the number of source blocks
1049 # maximizes the net difference in source blocks saved we get by
1112 # If the blocks written by A are read by B, then B needs to go before A.
1116 # the cost of removing source blocks for the __ZERO domain
1131 For BBOTA v3, we need to stash source blocks for resumable feature.
1133 partition source blocks are too large to be stashed. If a file occupies
1134 too many blocks, we split it into smaller pieces by getting multiple
1173 # Handle remaining blocks.
1196 # most of the blocks are identical with only few changes (e.g. header),
1197 # we will patch the changed blocks only. This avoids stashing unchanged
1198 # blocks while patching. We limit the analysis to files without size
1205 # few blocks remain identical, we lose the opportunity to use imgdiff
1243 # Possibly having no changed blocks.
1256 # the special "__ZERO" domain is all the blocks not contained
1258 # special transfer style for zero blocks.
1265 # "__COPY" domain includes all the blocks not contained in any