OSDN Git Service

Disable fragments and duplicates detection for squashfs
authorMohamad Ayyash <mkayyash@google.com>
Tue, 24 May 2016 20:53:53 +0000 (13:53 -0700)
committerMohamad Ayyash <mkayyash@google.com>
Tue, 14 Jun 2016 03:07:44 +0000 (20:07 -0700)
They don't play nicely with generating block maps. Fragments reduce
performance. A later patch will add workaround for duplicate detection.

BUG: 22322817
Change-Id: I01c731202ef7a2450b5d1beca627a0158c9cc3b4
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
squashfs_utils/mksquashfsimage.sh

index 28584ea..05ca4e0 100755 (executable)
@@ -99,7 +99,7 @@ if [ -n "$BLOCK_SIZE" ]; then
   OPT="$OPT -b $BLOCK_SIZE"
 fi
 
-MAKE_SQUASHFS_CMD="mksquashfs $SRC_DIR/ $OUTPUT_FILE -no-progress -comp $COMPRESSOR $COMPRESSOR_OPT -no-exports -noappend -no-recovery -android-fs-config $OPT"
+MAKE_SQUASHFS_CMD="mksquashfs $SRC_DIR/ $OUTPUT_FILE -no-progress -comp $COMPRESSOR $COMPRESSOR_OPT -no-exports -noappend -no-recovery -no-fragments -no-duplicates -android-fs-config $OPT"
 echo $MAKE_SQUASHFS_CMD
 $MAKE_SQUASHFS_CMD