From b5619d96303106304e95b73010b77eef47cf8d00 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 17 Dec 2015 13:52:32 -0800 Subject: [PATCH] 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 --- libsparse/append2simg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[]) exit(-1); } - sparse_output = sparse_file_import_auto(output, true, true); + sparse_output = sparse_file_import_auto(output, false, true); if (!sparse_output) { fprintf(stderr, "Couldn't import output file\n"); exit(-1);