From 9aa42f1721207bbd801f9f140b3b14e59db7ddfb Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Thu, 3 Jan 2019 17:19:50 -0800 Subject: [PATCH] Revert "Increase slack for inode estimation algorithm" This reverts commit e8e7958c13a18c1a381fe7ac0f4df36a80ef05ad. Test: build Bug: 122328872 Change-Id: I955aa0fa489ab62ec1643127d106925dcb9675ca --- tools/releasetools/build_image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py index 521b319ed5..2bf7be05f7 100755 --- a/tools/releasetools/build_image.py +++ b/tools/releasetools/build_image.py @@ -75,8 +75,8 @@ def GetInodeUsage(path): """ cmd = ["find", path, "-print"] output = common.RunAndCheckOutput(cmd, verbose=False) - # TODO(b/122328872) Fix estimation algorithm to not need the multiplier. - return output.count('\n') * 2 + # increase by 25 % as number of files and directories is not whole picture. + return output.count('\n') * 30 // 24 def GetFilesystemCharacteristics(image_path, sparse_image=True):