ext4_utils: Add an optional CRC chunk at the end of sparse files
Change-Id: Ibfcf1cdeab47ca13870350184abf83e530acbc07
diff --git a/ext4_utils/make_ext4fs.c b/ext4_utils/make_ext4fs.c
index 3f0141d..2160d56 100644
--- a/ext4_utils/make_ext4fs.c
+++ b/ext4_utils/make_ext4fs.c
@@ -242,7 +242,8 @@
}
int make_ext4fs(const char *filename, const char *directory,
- char *mountpoint, int android, int gzip, int sparse)
+ char *mountpoint, int android, int gzip, int sparse,
+ int crc)
{
u32 root_inode_num;
u16 root_mode;
@@ -340,7 +341,7 @@
aux_info.sb->s_blocks_count_lo - aux_info.sb->s_free_blocks_count_lo,
aux_info.sb->s_blocks_count_lo);
- write_ext4_image(filename, gzip, sparse);
+ write_ext4_image(filename, gzip, sparse, crc);
return 0;
}