Home
last modified time | relevance | path

Searched refs:sparse_header (Results 1 – 3 of 3) sorted by relevance

/system/core/libsparse/
Dsparse_read.c279 sparse_header_t sparse_header; in sparse_file_read_sparse() local
298 ret = read_all(fd, &sparse_header, sizeof(sparse_header)); in sparse_file_read_sparse()
303 if (sparse_header.magic != SPARSE_HEADER_MAGIC) { in sparse_file_read_sparse()
307 if (sparse_header.major_version != SPARSE_HEADER_MAJOR_VER) { in sparse_file_read_sparse()
311 if (sparse_header.file_hdr_sz < SPARSE_HEADER_LEN) { in sparse_file_read_sparse()
315 if (sparse_header.chunk_hdr_sz < sizeof(chunk_header)) { in sparse_file_read_sparse()
319 if (sparse_header.file_hdr_sz > SPARSE_HEADER_LEN) { in sparse_file_read_sparse()
323 lseek64(fd, sparse_header.file_hdr_sz - SPARSE_HEADER_LEN, SEEK_CUR); in sparse_file_read_sparse()
326 for (i = 0; i < sparse_header.total_chunks; i++) { in sparse_file_read_sparse()
332 if (sparse_header.chunk_hdr_sz > CHUNK_HEADER_LEN) { in sparse_file_read_sparse()
[all …]
Dsparse_format.h21 typedef struct sparse_header { struct
Doutput_file.c573 sparse_header_t sparse_header = { in output_file_init() local
586 sparse_header.total_chunks++; in output_file_init()
589 ret = out->ops->write(out, &sparse_header, sizeof(sparse_header)); in output_file_init()