Searched refs:sparse_header (Results 1 – 3 of 3) sorted by relevance
278 sparse_header_t sparse_header; in sparse_file_read_sparse() local297 ret = read_all(fd, &sparse_header, sizeof(sparse_header)); in sparse_file_read_sparse()302 if (sparse_header.magic != SPARSE_HEADER_MAGIC) { in sparse_file_read_sparse()306 if (sparse_header.major_version != SPARSE_HEADER_MAJOR_VER) { in sparse_file_read_sparse()310 if (sparse_header.file_hdr_sz < SPARSE_HEADER_LEN) { in sparse_file_read_sparse()314 if (sparse_header.chunk_hdr_sz < sizeof(chunk_header)) { in sparse_file_read_sparse()318 if (sparse_header.file_hdr_sz > SPARSE_HEADER_LEN) { in sparse_file_read_sparse()322 lseek64(fd, sparse_header.file_hdr_sz - SPARSE_HEADER_LEN, SEEK_CUR); in sparse_file_read_sparse()325 for (i = 0; i < sparse_header.total_chunks; i++) { in sparse_file_read_sparse()331 if (sparse_header.chunk_hdr_sz > CHUNK_HEADER_LEN) { in sparse_file_read_sparse()[all …]
21 typedef struct sparse_header { struct
573 sparse_header_t sparse_header = { in output_file_init() local586 sparse_header.total_chunks++; in output_file_init()589 ret = out->ops->write(out, &sparse_header, sizeof(sparse_header)); in output_file_init()