Lines Matching full:sparse_file
22 #include "sparse_file.h"
29 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len)
31 struct sparse_file *s = calloc(sizeof(struct sparse_file), 1);
48 void sparse_file_destroy(struct sparse_file *s)
54 int sparse_file_add_data(struct sparse_file *s,
60 int sparse_file_add_fill(struct sparse_file *s,
66 int sparse_file_add_file(struct sparse_file *s,
74 int sparse_file_add_fd(struct sparse_file *s,
80 unsigned int sparse_count_chunks(struct sparse_file *s)
125 static int write_all_blocks(struct sparse_file *s, struct output_file *out)
151 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse,
171 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc,
199 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc)
223 static struct backed_block *move_chunks_up_to_len(struct sparse_file *from,
224 struct sparse_file *to, unsigned int len)
277 int sparse_file_resparse(struct sparse_file *in_s, unsigned int max_len,
278 struct sparse_file **out_s, int out_s_count)
282 struct sparse_file *s;
283 struct sparse_file *tmp;
314 void sparse_file_verbose(struct sparse_file *s)