diff options
author | Jin Qian <jinqian@google.com> | 2018-01-22 12:58:23 -0800 |
---|---|---|
committer | Jin Qian <jinqian@google.com> | 2018-01-22 14:52:12 -0800 |
commit | 48c84d1d8a876f4942a192901051c809ede23f42 (patch) | |
tree | 676cb40345668081edb5d8395a0fa100231c15a8 /ext4_utils | |
parent | 0333368700b5d40bb1e33c784611efb98394ab3e (diff) | |
download | extras-48c84d1d8a876f4942a192901051c809ede23f42.tar.gz |
ext4_utils: add option to compact duplicated blocks
Pass -s to e2fsdroid to share de-duplicate data blocks on ext4.
Bug: 64109868
Change-Id: I67a9dd2dee2c63f6e8f9bc2f9962d7851e4a11f4
Diffstat (limited to 'ext4_utils')
-rwxr-xr-x | ext4_utils/mkuserimg_mke2fs.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext4_utils/mkuserimg_mke2fs.sh b/ext4_utils/mkuserimg_mke2fs.sh index 8ba8777a..9f18c042 100755 --- a/ext4_utils/mkuserimg_mke2fs.sh +++ b/ext4_utils/mkuserimg_mke2fs.sh @@ -9,7 +9,7 @@ mkuserimg.sh [-s] SRC_DIR OUTPUT_FILE EXT_VARIANT MOUNT_POINT SIZE [-j <journal_ [-T TIMESTAMP] [-C FS_CONFIG] [-D PRODUCT_OUT] [-B BLOCK_LIST_FILE] [-d BASE_ALLOC_FILE_IN ] [-A BASE_ALLOC_FILE_OUT ] [-L LABEL] [-i INODES ] [-e ERASE_BLOCK_SIZE] [-o FLASH_BLOCK_SIZE] - [-U MKE2FS_UUID] [-S MKE2FS_HASH_SEED] [FILE_CONTEXTS] + [-U MKE2FS_UUID] [-S MKE2FS_HASH_SEED] [-c] [FILE_CONTEXTS] EOT } @@ -124,6 +124,11 @@ if [[ "$1" == "-S" ]]; then shift; shift fi +if [[ "$1" == "-c" ]]; then + E2FSDROID_OPTS+=" -s" + shift; +fi + if [[ $MKE2FS_EXTENDED_OPTS ]]; then MKE2FS_OPTS+=" -E $MKE2FS_EXTENDED_OPTS" fi |