Lines Matching refs:disk_fd

256         r = qcow2_detect(i->raw_job->disk_fd);  in raw_pull_maybe_convert_qcow2()
277 r = qcow2_convert(i->raw_job->disk_fd, converted_fd); in raw_pull_maybe_convert_qcow2()
283 CLOSE_AND_REPLACE(i->raw_job->disk_fd, converted_fd); in raw_pull_maybe_convert_qcow2()
364 assert(i->raw_job->disk_fd < 0); in raw_pull_make_local_copy()
366 i->raw_job->disk_fd = open(i->final_path, O_RDONLY|O_NOCTTY|O_CLOEXEC); in raw_pull_make_local_copy()
367 if (i->raw_job->disk_fd < 0) in raw_pull_make_local_copy()
372 assert(i->raw_job->disk_fd >= 0); in raw_pull_make_local_copy()
375 if (lseek(i->raw_job->disk_fd, SEEK_SET, 0) == (off_t) -1) in raw_pull_make_local_copy()
395 r = copy_bytes(i->raw_job->disk_fd, dfd, UINT64_MAX, COPY_REFLINK); in raw_pull_make_local_copy()
399 (void) copy_times(i->raw_job->disk_fd, dfd, COPY_CRTIME); in raw_pull_make_local_copy()
400 (void) copy_xattr(i->raw_job->disk_fd, dfd, 0); in raw_pull_make_local_copy()
709 j->disk_fd = open(*temp_path, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664); in raw_pull_job_on_open_disk_generic()
710 if (j->disk_fd < 0) in raw_pull_job_on_open_disk_generic()
725 assert(j->disk_fd < 0); in raw_pull_job_on_open_disk_raw()
730 j->disk_fd = STDOUT_FILENO; in raw_pull_job_on_open_disk_raw()
737 …j->disk_fd = open(i->local, O_RDWR|O_NOCTTY|O_CLOEXEC|(i->offset == UINT64_MAX ? O_TRUNC|O_CREAT :… in raw_pull_job_on_open_disk_raw()
738 if (j->disk_fd < 0) in raw_pull_job_on_open_disk_raw()
742 (void) import_set_nocow_and_log(j->disk_fd, i->local); in raw_pull_job_on_open_disk_raw()
750 (void) import_set_nocow_and_log(j->disk_fd, i->temp_path); in raw_pull_job_on_open_disk_raw()