aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2019-01-08 10:17:46 -0600
committerMark Salyzyn2019-01-14 11:44:40 -0600
commit9f23b89273ec886462113bf62cf71b2dba6716a1 (patch)
tree039583f9c0214dc0f1b480c9cb58d23495941a82
parent9aa42f1721207bbd801f9f140b3b14e59db7ddfb (diff)
downloadplatform-build-9f23b89273ec886462113bf62cf71b2dba6716a1.tar.gz
platform-build-9f23b89273ec886462113bf62cf71b2dba6716a1.tar.xz
platform-build-9f23b89273ec886462113bf62cf71b2dba6716a1.zip
Revert "Relax inode usage estimation slack for DAP right sizing"
This reverts commit bd17fab26048d9469fd6d857517d77a81e9b1d74. Test: build Bug: 122328872 Change-Id: I6457933a0dc51827bd86d9c55b02a65999612bcc
-rwxr-xr-xtools/releasetools/build_image.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py
index 2bf7be05f..6aaff6bfa 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 # increase by > 4% as number of files and directories is not whole picture.
79 return output.count('\n') * 30 // 24 79 return output.count('\n') * 25 // 24
80 80
81 81
82def GetFilesystemCharacteristics(image_path, sparse_image=True): 82def GetFilesystemCharacteristics(image_path, sparse_image=True):