aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2019-01-08 12:08:04 -0600
committerMark Salyzyn2019-01-10 16:49:12 -0600
commitc777eaa779fd171abb80640656e2164b15dbc63b (patch)
tree66dee9ee272419449319b1e1d8e9ad3427de351c
parent1b8939b94657e5f70ef70030e7c68913d35f10cb (diff)
downloadplatform-build-c777eaa779fd171abb80640656e2164b15dbc63b.tar.gz
platform-build-c777eaa779fd171abb80640656e2164b15dbc63b.tar.xz
platform-build-c777eaa779fd171abb80640656e2164b15dbc63b.zip
build_image: hard code set inode size to 256
inode-size will jump around based on filesystem size, however readonly Android system partitions have a specific pattern of xattr associated with sepolicy and 256 is the most efficient at absorbing the content. Test: manual Bug: 122328872 Change-Id: I06dd6a503067ab6477293b386d56a89dd86b0e83
-rwxr-xr-xtools/releasetools/build_image.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py
index d71060394..f5163090f 100755
--- a/tools/releasetools/build_image.py
+++ b/tools/releasetools/build_image.py
@@ -280,6 +280,7 @@ def BuildImageMkfs(in_dir, prop_dict, out_file, target_out, fs_config):
280 build_command.extend(["-S", prop_dict["hash_seed"]]) 280 build_command.extend(["-S", prop_dict["hash_seed"]])
281 if "ext4_share_dup_blocks" in prop_dict: 281 if "ext4_share_dup_blocks" in prop_dict:
282 build_command.append("-c") 282 build_command.append("-c")
283 build_command.extend(["--inode_size", "256"])
283 if "selinux_fc" in prop_dict: 284 if "selinux_fc" in prop_dict:
284 build_command.append(prop_dict["selinux_fc"]) 285 build_command.append(prop_dict["selinux_fc"])
285 elif fs_type.startswith("squash"): 286 elif fs_type.startswith("squash"):