summaryrefslogtreecommitdiff
path: root/tools/check_elf_file.py
diff options
context:
space:
mode:
author David Anderson <dvander@google.com> 2021-08-31 21:32:45 -0700
committer David Anderson <dvander@google.com> 2021-09-01 13:12:39 -0700
commit9e95a02a87ebd8c0e14edc4904facdc8e0352fcc (patch)
treeda5153b66e1d02371505a5d24e7e372ce952cfff /tools/check_elf_file.py
parentbdf9be4708f75624fccc26495346c030ccaa0576 (diff)
Don't sparse right-sized ext4 and erofs images.
When we introduced Dynamic Partitions, we stopped giving readonly partitions fixed sizes. In addition we introduced deduplication for ext4. These two factors greatly reduce the impact of sparse images, since there aren't many fill blocks to optimize. This patch disables sparsing for images that are rightsized and do not explicitly specify extra reserved space. This makes the images a little easier to work with from an engineering perspective. They no longer have to be unsparsed to interact with any tooling. It also eases a potential source of bugs, as b/184225422 is not reproducible with sparsing off. On Pixel, the difference between the sparsed partitions and unsparsed is 12M (out of roughly 4G). Bug: 198001223 Test: make, treehugger, make target-files-package dynamic partitions are no longer sparse images Change-Id: I74459f8abe74a15a24ba5a40cf701e6af2db8179
Diffstat (limited to 'tools/check_elf_file.py')
0 files changed, 0 insertions, 0 deletions