Apply 1 ignore_zero_blocks optimization to dm-verity setup 76/241976/1 accepted/tizen/unified/20200824.134507 submit/tizen/20200821.075138
authorHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 21 Aug 2020 07:46:00 +0000 (16:46 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 21 Aug 2020 07:46:00 +0000 (16:46 +0900)
Change-Id: I57e66b868eab7ab3b08a06c8bd3d97aa42c8040a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
scripts/verityctl

index dfdca04c5edd07b5b7a2a8fbc76d48f6edd85f5e..6229846c8a2afd148668fd0faf27c6f59ba2a1d4 100755 (executable)
@@ -91,7 +91,7 @@ create()
                        #/sbin/veritysetup --hash-offset=$hash_offset create $NAME $ROOTFS $ROOTFS $root_hash
 
                        /sbin/dmsetup create $NAME -r --table "0 $dmsetup_sectors verity 1 $ROOTFS $ROOTFS 4096 4096 \
-                                                 $dmsetup_blocks $dmsetup_hash_offset sha256 $root_hash $salt"
+                                                 $dmsetup_blocks $dmsetup_hash_offset sha256 $root_hash $salt 1 ignore_zero_blocks"
 
                        mount /dev/mapper/$NAME /sysroot
                        exit 0