Home | History | Annotate | Download | only in libsparse

Lines Matching defs:out

104 static int sparse_file_write_block(struct output_file *out,
111 ret = write_data_chunk(out, backed_block_len(bb), backed_block_data(bb));
114 ret = write_file_chunk(out, backed_block_len(bb),
119 ret = write_fd_chunk(out, backed_block_len(bb),
124 ret = write_fill_chunk(out, backed_block_len(bb),
132 static int write_all_blocks(struct sparse_file *s, struct output_file *out)
143 write_skip_chunk(out, (int64_t)blocks * s->block_size);
145 ret = sparse_file_write_block(out, bb);
155 write_skip_chunk(out, pad);
166 struct output_file *out;
169 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc);
171 if (!out)
174 ret = write_all_blocks(s, out);
176 output_file_close(out);
186 struct output_file *out;
189 out = output_file_open_callback(write, priv, s->block_size, s->len, false,
192 if (!out)
195 ret = write_all_blocks(s, out);
197 output_file_close(out);
214 struct output_file *out;
216 out = output_file_open_callback(out_counter_write, &count,
218 if (!out) {
222 ret = write_all_blocks(s, out);
224 output_file_close(out);
271 goto out;
294 out: