Relax inode usage estimation slack for DAP right sizing
The current increase of 4 % is insufficient for some
targets.
Test: mmm
Bug: 119115481
Change-Id: Idcba8025b913da9b70794bfc7464d15b4d99ad34
(cherry picked from commit 3e02e34090
)
This commit is contained in:
@@ -75,8 +75,8 @@ def GetInodeUsage(path):
|
|||||||
"""
|
"""
|
||||||
cmd = ["find", path, "-print"]
|
cmd = ["find", path, "-print"]
|
||||||
output = common.RunAndCheckOutput(cmd, verbose=False)
|
output = common.RunAndCheckOutput(cmd, verbose=False)
|
||||||
# increase by > 4% as number of files and directories is not whole picture.
|
# increase by 25 % as number of files and directories is not whole picture.
|
||||||
return output.count('\n') * 25 // 24
|
return output.count('\n') * 30 // 24
|
||||||
|
|
||||||
|
|
||||||
def GetFilesystemCharacteristics(sparse_image_path):
|
def GetFilesystemCharacteristics(sparse_image_path):
|
||||||
|
Reference in New Issue
Block a user