Add build property to enable fscompression
Bug: 162253911 Bug: 110272315 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com> Change-Id: I3cb7d0a055a7f83c9d0321d2b16f11f40a74f7aa Merged-In: I3cb7d0a055a7f83c9d0321d2b16f11f40a74f7aa
This commit is contained in:
@@ -250,6 +250,7 @@ def BuildImageMkfs(in_dir, prop_dict, out_file, target_out, fs_config):
|
||||
run_e2fsck = False
|
||||
needs_projid = prop_dict.get("needs_projid", 0)
|
||||
needs_casefold = prop_dict.get("needs_casefold", 0)
|
||||
needs_compress = prop_dict.get("needs_compress", 0)
|
||||
|
||||
if fs_type.startswith("ext"):
|
||||
build_command = [prop_dict["ext_mkuserimg"]]
|
||||
@@ -337,6 +338,8 @@ def BuildImageMkfs(in_dir, prop_dict, out_file, target_out, fs_config):
|
||||
build_command.append("--prjquota")
|
||||
if (needs_casefold):
|
||||
build_command.append("--casefold")
|
||||
if (needs_compress):
|
||||
build_command.append("--compression")
|
||||
else:
|
||||
raise BuildImageError(
|
||||
"Error: unknown filesystem type: {}".format(fs_type))
|
||||
@@ -610,6 +613,7 @@ def ImagePropFromGlobalDict(glob_dict, mount_point):
|
||||
copy_prop("userdata_selinux_fc", "selinux_fc")
|
||||
copy_prop("needs_casefold", "needs_casefold")
|
||||
copy_prop("needs_projid", "needs_projid")
|
||||
copy_prop("needs_compress", "needs_compress")
|
||||
elif mount_point == "cache":
|
||||
copy_prop("cache_fs_type", "fs_type")
|
||||
copy_prop("cache_size", "partition_size")
|
||||
|
Reference in New Issue
Block a user