diff options
author | Michael Halcrow <mhalcrow@google.com> | 2018-03-14 09:22:38 -0700 |
---|---|---|
committer | Michael Halcrow <mhalcrow@google.com> | 2018-03-14 09:22:38 -0700 |
commit | e1570d21c879e3320bfca60447ea52b018f7adc7 (patch) | |
tree | 3f70c7e34e9916b5eb71c1525bebb92b8fcdf525 | |
parent | 872da1fea4de8a4659ef7769b47b71b11f2c7dd3 (diff) | |
download | fsverity-utils-e1570d21c879e3320bfca60447ea52b018f7adc7.tar.gz |
Ensure disk is a minimum size for a valid f2fs filesystem
Signed-off-by: Michael Halcrow <mhalcrow@google.com>
-rwxr-xr-x | full-run-fsverity.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/full-run-fsverity.sh b/full-run-fsverity.sh index c98da92..33d286e 100755 --- a/full-run-fsverity.sh +++ b/full-run-fsverity.sh @@ -2,7 +2,7 @@ umount /mnt/f2fs rm -f /root/f2fs.img -dd if=/dev/zero of=/root/f2fs.img seek=$(($1/128)) bs=512 count=1 +dd if=/dev/zero of=/root/f2fs.img seek=$(($1<16384000?128000:$1/128)) bs=512 count=1 /root/f2fs-tools/mkfs/mkfs.f2fs -O verity /root/f2fs.img mount -o loop /root/f2fs.img /mnt/f2fs cp /root/output-$1.apk /mnt/f2fs/output-$1.apk |