diff options
author | Hridya Valsaraju | 2019-01-03 19:19:50 -0600 |
---|---|---|
committer | Hridya Valsaraju | 2019-01-04 11:18:07 -0600 |
commit | e8e7958c13a18c1a381fe7ac0f4df36a80ef05ad (patch) | |
tree | 8deba3552d13a831ac932d28238ae88bdf39509f /tools | |
parent | 7264a0daabef0b25a36350304064acfe9501e9fa (diff) | |
download | platform-build-e8e7958c13a18c1a381fe7ac0f4df36a80ef05ad.tar.gz platform-build-e8e7958c13a18c1a381fe7ac0f4df36a80ef05ad.tar.xz platform-build-e8e7958c13a18c1a381fe7ac0f4df36a80ef05ad.zip |
Increase slack for inode estimation algorithm
This is required to prevent build failure on some targets.
Test: mmm
Bug: 119115481
Change-Id: Idf7c21b163a4e10e2ef435c2b2a7795a42feb200
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/releasetools/build_image.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py index 146b8683b..d71060394 100755 --- a/tools/releasetools/build_image.py +++ b/tools/releasetools/build_image.py | |||
@@ -75,8 +75,8 @@ def GetInodeUsage(path): | |||
75 | """ | 75 | """ |
76 | cmd = ["find", path, "-print"] | 76 | cmd = ["find", path, "-print"] |
77 | output = common.RunAndCheckOutput(cmd, verbose=False) | 77 | output = common.RunAndCheckOutput(cmd, verbose=False) |
78 | # increase by 25 % as number of files and directories is not whole picture. | 78 | # TODO(b/122328872) Fix estimation algorithm to not need the multiplier. |
79 | return output.count('\n') * 30 // 24 | 79 | return output.count('\n') * 2 |
80 | 80 | ||
81 | 81 | ||
82 | def GetFilesystemCharacteristics(sparse_image_path): | 82 | def GetFilesystemCharacteristics(sparse_image_path): |