summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-06-01 01:32:58 -0700
committerAlex Deymo <deymo@google.com>2016-06-21 15:45:45 -0700
commit18f8e200a043e38a25e95561a5f75882a930dd13 (patch)
treee1905650ea82f5f8d734664784ed38246afbd93b /scripts/update_payload/format_utils_unittest.py
parent6e3ffe73d27de744ef494292c003b5ba907799df (diff)
Allow to shrink ext2 filesystems.
There was a function a long time ago that didn't handle shrinking an ext2 filesystem when computing the diff of the blocks that were not part of a file nor metadata (mostly empty space blocks). This is now handled in a different way, which is not related to how the filesystems are parsed in the ABGenerator. This patch removes the check that prevents the delta generator from generating those payloads and fixes the inplace generator for partitions that shrink in size. Bug: 28846535 TEST=Generated a payload to a smaller ext2 system image, both for minor version 1 and 2+. Change-Id: I36efb28c393bec8aa65be8ea158690a7e8f06b22 (cherry picked from commit 05871fab8b32938ad66ce230250ff6db5563bd7a)
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions