OSDN Git Service

Add support for IEEE 802.c stylc CRC32 computation to the sparse image tools
authorKen Sumrall <ksumrall@android.com>
Tue, 17 Aug 2010 02:17:38 +0000 (19:17 -0700)
committerKen Sumrall <ksumrall@android.com>
Tue, 7 Sep 2010 21:57:17 +0000 (14:57 -0700)
commit9c842adc177c1bcd22c2038d8d237bfb70654dca
tree66631ea41a62ef3c7ff7dba471dabcfd6912ab67
parent8642b7fba54727a38f751516bcdc452fb09ef610
Add support for IEEE 802.c stylc CRC32 computation to the sparse image tools

Add support for computing the CRC32 of the data when we make a sparse image,
and storing that CRC in the header.  Also update the simg2img tool that reads
sparse images to compute the CRC32 as it writes the image, and check to make
sure it matches what's in the header.

Change-Id: Id49b25bf820acb46ff981f3046fba5b24fd82c8d
ext4_utils/Android.mk
ext4_utils/output_file.c
ext4_utils/simg2img.c
ext4_utils/sparse_crc32.c [new file with mode: 0644]
ext4_utils/sparse_crc32.h [new file with mode: 0644]