• Home
  • Raw
  • Download

Lines Matching refs:ret

104 	int ret;  in process_raw_chunk()  local
116 ret = sparse_file_add_fd(s, fd, offset, len, block); in process_raw_chunk()
117 if (ret < 0) { in process_raw_chunk()
118 return ret; in process_raw_chunk()
124 ret = read_all(fd, copybuf, chunk); in process_raw_chunk()
125 if (ret < 0) { in process_raw_chunk()
126 return ret; in process_raw_chunk()
141 int ret; in process_fill_chunk() local
152 ret = read_all(fd, &fill_val, sizeof(fill_val)); in process_fill_chunk()
153 if (ret < 0) { in process_fill_chunk()
154 return ret; in process_fill_chunk()
157 ret = sparse_file_add_fill(s, fill_val, len, block); in process_fill_chunk()
158 if (ret < 0) { in process_fill_chunk()
159 return ret; in process_fill_chunk()
204 int ret; in process_crc32_chunk() local
210 ret = read_all(fd, &file_crc32, sizeof(file_crc32)); in process_crc32_chunk()
211 if (ret < 0) { in process_crc32_chunk()
212 return ret; in process_crc32_chunk()
226 int ret; in process_chunk() local
233 ret = process_raw_chunk(s, chunk_data_size, fd, offset, in process_chunk()
235 if (ret < 0) { in process_chunk()
236 verbose_error(s->verbose, ret, "data block at %lld", offset); in process_chunk()
237 return ret; in process_chunk()
241 ret = process_fill_chunk(s, chunk_data_size, fd, in process_chunk()
243 if (ret < 0) { in process_chunk()
244 verbose_error(s->verbose, ret, "fill block at %lld", offset); in process_chunk()
245 return ret; in process_chunk()
249 ret = process_skip_chunk(s, chunk_data_size, fd, in process_chunk()
252 if (ret < 0) { in process_chunk()
253 verbose_error(s->verbose, ret, "skip block at %lld", offset); in process_chunk()
254 return ret; in process_chunk()
259 ret = process_crc32_chunk(fd, chunk_data_size, *crc_ptr); in process_chunk()
260 if (ret < 0) { in process_chunk()
263 return ret; in process_chunk()
276 int ret; in sparse_file_read_sparse() local
297 ret = read_all(fd, &sparse_header, sizeof(sparse_header)); in sparse_file_read_sparse()
298 if (ret < 0) { in sparse_file_read_sparse()
299 return ret; in sparse_file_read_sparse()
326 ret = read_all(fd, &chunk_header, sizeof(chunk_header)); in sparse_file_read_sparse()
327 if (ret < 0) { in sparse_file_read_sparse()
328 return ret; in sparse_file_read_sparse()
340 ret = process_chunk(s, fd, offset, sparse_header.chunk_hdr_sz, &chunk_header, in sparse_file_read_sparse()
342 if (ret < 0) { in sparse_file_read_sparse()
343 return ret; in sparse_file_read_sparse()
346 cur_block += ret; in sparse_file_read_sparse()
358 int ret; in sparse_file_read_normal() local
373 ret = read_all(fd, buf, to_read); in sparse_file_read_normal()
374 if (ret < 0) { in sparse_file_read_normal()
376 return ret; in sparse_file_read_normal()
421 int ret; in sparse_file_import() local
426 ret = read_all(fd, &sparse_header, sizeof(sparse_header)); in sparse_file_import()
427 if (ret < 0) { in sparse_file_import()
428 verbose_error(verbose, ret, "header"); in sparse_file_import()
457 ret = lseek64(fd, 0, SEEK_SET); in sparse_file_import()
458 if (ret < 0) { in sparse_file_import()
459 verbose_error(verbose, ret, "seeking"); in sparse_file_import()
466 ret = sparse_file_read(s, fd, true, crc); in sparse_file_import()
467 if (ret < 0) { in sparse_file_import()
479 int ret; in sparse_file_import_auto() local
498 ret = sparse_file_read_normal(s, fd); in sparse_file_import_auto()
499 if (ret < 0) { in sparse_file_import_auto()