summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-05-12 18:46:25 -0700
committerAlex Deymo <deymo@google.com>2016-05-18 15:18:34 -0700
commitb86787cdb2ca619c8e2ef0a2e38af8353f4cf4ac (patch)
treee5670f2ebc62b08dac64e2e52c12bc6cd24c2406 /scripts/update_payload/format_utils.py
parenta57ce77c1e7c0e7c1caa825e3f8ca204c3e5900a (diff)
Discard the tail of the target partitions when updating.
The partition is normally way bigger than the data it holds and the remainder of the partition is often ignored by the system. This patch discards the tail of the partition, past the end of the updated data. This would ensure that the unused blocks in these partitions can be reallocated by the SSD controller to other blocks, and that data from previous updates does not interfere with the current version. Bug: 28744609 TEST=strace -e trace=file,ioctl shows the device discarding the end of the updated partitions. Change-Id: Ie6135ee1aef2fa594c40d84af4d1d46a8f53cc3a
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions