Lines Matching refs:sparse_file
30 struct sparse_file* sparse_file_new(unsigned int block_size, int64_t len) { in sparse_file_new()
31 struct sparse_file* s = reinterpret_cast<sparse_file*>(calloc(sizeof(struct sparse_file), 1)); in sparse_file_new()
48 void sparse_file_destroy(struct sparse_file* s) { in sparse_file_destroy()
53 int sparse_file_add_data(struct sparse_file* s, void* data, unsigned int len, unsigned int block) { in sparse_file_add_data()
57 int sparse_file_add_fill(struct sparse_file* s, uint32_t fill_val, unsigned int len, in sparse_file_add_fill()
62 int sparse_file_add_file(struct sparse_file* s, const char* filename, int64_t file_offset, in sparse_file_add_file()
67 int sparse_file_add_fd(struct sparse_file* s, int fd, int64_t file_offset, unsigned int len, in sparse_file_add_fd()
71 unsigned int sparse_count_chunks(struct sparse_file* s) { in sparse_count_chunks()
114 static int write_all_blocks(struct sparse_file* s, struct output_file* out) { in write_all_blocks()
139 int sparse_file_write(struct sparse_file* s, int fd, bool gz, bool sparse, bool crc) { in sparse_file_write()
156 int sparse_file_callback(struct sparse_file* s, bool sparse, bool crc, in sparse_file_callback()
187 int sparse_file_foreach_chunk(struct sparse_file* s, bool sparse, bool crc, in sparse_file_foreach_chunk()
224 int64_t sparse_file_len(struct sparse_file* s, bool sparse, bool crc) { in sparse_file_len()
247 unsigned int sparse_file_block_size(struct sparse_file* s) { in sparse_file_block_size()
251 static struct backed_block* move_chunks_up_to_len(struct sparse_file* from, struct sparse_file* to, in move_chunks_up_to_len()
313 int sparse_file_resparse(struct sparse_file* in_s, unsigned int max_len, struct sparse_file** out_s, in sparse_file_resparse()
316 struct sparse_file* s; in sparse_file_resparse()
317 struct sparse_file* tmp; in sparse_file_resparse()
346 void sparse_file_verbose(struct sparse_file* s) { in sparse_file_verbose()