Lines Matching refs:clobbered_blocks
26 Wraps a sparse image file (and optional file map and clobbered_blocks) into
28 the mapping between files and their blocks. clobbered_blocks contains the set
30 contents (i.e. copying instead of patching). clobbered_blocks should be in
34 def __init__(self, simg_fn, file_map_fn=None, clobbered_blocks=None,
71 self.clobbered_blocks = rangelib.RangeSet(data=clobbered_blocks)
129 self.LoadFileBlockMap(file_map_fn, self.clobbered_blocks)
160 clobbered_blocks."""
163 ranges = ranges.subtract(self.clobbered_blocks)
209 def LoadFileBlockMap(self, fn, clobbered_blocks):
220 # Currently we assume that blocks in clobbered_blocks are not part of
222 assert not clobbered_blocks.overlaps(ranges)
225 remaining = remaining.subtract(clobbered_blocks)
228 # aren't part of the data for any file nor part of the clobbered_blocks),
279 assert zero_blocks or nonzero_groups or clobbered_blocks
286 if clobbered_blocks:
287 out["__COPY"] = clobbered_blocks