Searched refs:sparse_header (Results 1 – 3 of 3) sorted by relevance
/system/extras/ext4_utils/ |
D | simg2img.c | 109 sparse_header_t sparse_header; in main() local 134 if (fread(&sparse_header, sizeof(sparse_header), 1, in) != 1) { in main() 139 if (sparse_header.magic != SPARSE_HEADER_MAGIC) { in main() 144 if (sparse_header.major_version != SPARSE_HEADER_MAJOR_VER) { in main() 149 if (sparse_header.file_hdr_sz > SPARSE_HEADER_LEN) { in main() 153 fseek(in, sparse_header.file_hdr_sz - SPARSE_HEADER_LEN, SEEK_CUR); in main() 156 if ( (zerobuf = malloc(sparse_header.blk_sz)) == 0) { in main() 161 for (i=0; i<sparse_header.total_chunks; i++) { in main() 167 if (sparse_header.chunk_hdr_sz > CHUNK_HEADER_LEN) { in main() 171 fseek(in, sparse_header.chunk_hdr_sz - CHUNK_HEADER_LEN, SEEK_CUR); in main() [all …]
|
D | output_file.c | 135 static sparse_header_t sparse_header = { variable 257 sparse_header.total_chunks = out->chunk_cnt; in close_output_file() 258 sparse_header.image_checksum = out->crc32; in close_output_file() 264 ret = out->ops->write(out, (u8 *)&sparse_header, sizeof(sparse_header)); in close_output_file() 314 sparse_header.blk_sz = info.block_size, in open_output_file() 315 sparse_header.total_blks = info.len / info.block_size, in open_output_file() 316 ret = out->ops->write(out, (u8 *)&sparse_header, sizeof(sparse_header)); in open_output_file()
|
D | sparse_format.h | 17 typedef struct sparse_header { struct
|