OSDN Git Service

Adjust the size computation for reserved blocks
authorTao Bao <tbao@google.com>
Tue, 23 Jun 2015 18:16:05 +0000 (11:16 -0700)
committerTao Bao <tbao@google.com>
Tue, 23 Jun 2015 21:53:28 +0000 (14:53 -0700)
commitefbb5d2e692283be32069e808b88522727c7fe98
tree48e8f9b2a9c6d5a813346f3ed6f9dc420e18af37
parentbebd3cfbf934beb18b73a4d4e98b98c2c0a1d6fe
Adjust the size computation for reserved blocks

Due to the change in https://lwn.net/Articles/546473/, kernel reserves a
few extra blocks (lesser of 2% and 4096 blocks) on ext4 FS which leads to
OTA update failures. Adjust the size computation if the device has
BOARD_HAS_EXT4_RESERVED_BLOCKS := true.

Bug: 21522719
Bug: 22023465
Change-Id: I49f16adbf2dedc5279fbb8622bf99ef71dcc494f
core/Makefile
tools/releasetools/build_image.py