diff options
author | Colin Cross | 2015-12-17 15:52:32 -0600 |
---|---|---|
committer | Colin Cross | 2015-12-17 19:28:44 -0600 |
commit | b5619d96303106304e95b73010b77eef47cf8d00 (patch) | |
tree | e891e060e2e22a35370ccaf17c7d4e7b4681910d /libsparse/append2simg.c | |
parent | 7c20ab3e73421e4a36c8b3a0fc0d1c49653ab51b (diff) | |
download | platform-system-core-b5619d96303106304e95b73010b77eef47cf8d00.tar.gz platform-system-core-b5619d96303106304e95b73010b77eef47cf8d00.tar.xz platform-system-core-b5619d96303106304e95b73010b77eef47cf8d00.zip |
Turn off CRC checking for append2simg
make_ext4fs doesn't write out a CRC chunk, and append2simg doesn't
either, but append2simg was still performing a CRC on every input
block. Cuts append2simg time in half.
Change-Id: I678f807abbb741042461ed68a0f61b406d3665fb
Diffstat (limited to 'libsparse/append2simg.c')
-rw-r--r-- | libsparse/append2simg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsparse/append2simg.c b/libsparse/append2simg.c index 1cf827cd8..eef876400 100644 --- a/libsparse/append2simg.c +++ b/libsparse/append2simg.c | |||
@@ -82,7 +82,7 @@ int main(int argc, char *argv[]) | |||
82 | exit(-1); | 82 | exit(-1); |
83 | } | 83 | } |
84 | 84 | ||
85 | sparse_output = sparse_file_import_auto(output, true, true); | 85 | sparse_output = sparse_file_import_auto(output, false, true); |
86 | if (!sparse_output) { | 86 | if (!sparse_output) { |
87 | fprintf(stderr, "Couldn't import output file\n"); | 87 | fprintf(stderr, "Couldn't import output file\n"); |
88 | exit(-1); | 88 | exit(-1); |