Lines Matching refs:sparse_file
30 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len) in sparse_file_new()
32 struct sparse_file *s = calloc(sizeof(struct sparse_file), 1); in sparse_file_new()
49 void sparse_file_destroy(struct sparse_file *s) in sparse_file_destroy()
55 int sparse_file_add_data(struct sparse_file *s, in sparse_file_add_data()
61 int sparse_file_add_fill(struct sparse_file *s, in sparse_file_add_fill()
67 int sparse_file_add_file(struct sparse_file *s, in sparse_file_add_file()
75 int sparse_file_add_fd(struct sparse_file *s, in sparse_file_add_fd()
81 unsigned int sparse_count_chunks(struct sparse_file *s) in sparse_count_chunks()
132 static int write_all_blocks(struct sparse_file *s, struct output_file *out) in write_all_blocks()
161 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse, in sparse_file_write()
181 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, in sparse_file_callback()
209 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc) in sparse_file_len()
233 static struct backed_block *move_chunks_up_to_len(struct sparse_file *from, in move_chunks_up_to_len()
234 struct sparse_file *to, unsigned int len) in move_chunks_up_to_len()
300 int sparse_file_resparse(struct sparse_file *in_s, unsigned int max_len, in sparse_file_resparse()
301 struct sparse_file **out_s, int out_s_count) in sparse_file_resparse()
304 struct sparse_file *s; in sparse_file_resparse()
305 struct sparse_file *tmp; in sparse_file_resparse()
336 void sparse_file_verbose(struct sparse_file *s) in sparse_file_verbose()