Searched refs:disk_fd (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/import/ |
D | pull-job.c | 28 safe_close(j->disk_fd); in pull_job_close_disk_fd() 30 j->disk_fd = -1; in pull_job_close_disk_fd() 246 if (j->disk_fd >= 0) { in pull_job_curl_on_finished() 255 if (ftruncate(j->disk_fd, j->written_uncompressed) < 0) { in pull_job_curl_on_finished() 262 … (void) fsetxattr(j->disk_fd, "user.source_etag", j->etag, strlen(j->etag), 0); in pull_job_curl_on_finished() 264 … (void) fsetxattr(j->disk_fd, "user.source_url", j->url, strlen(j->url), 0); in pull_job_curl_on_finished() 271 … if (futimens(j->disk_fd, (struct timespec[]) { ut, ut }) < 0) in pull_job_curl_on_finished() 274 r = fd_setcrtime(j->disk_fd, j->mtime); in pull_job_curl_on_finished() 281 r = fsync_full(j->disk_fd); in pull_job_curl_on_finished() 290 if (fsync(j->disk_fd) < 0) { in pull_job_curl_on_finished() [all …]
|
D | pull-raw.c | 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() [all …]
|
D | pull-tar.c | 535 j->disk_fd = import_fork_tar_x(where, &i->tar_pid); in tar_pull_job_on_open_disk_tar() 536 if (j->disk_fd < 0) in tar_pull_job_on_open_disk_tar() 537 return j->disk_fd; in tar_pull_job_on_open_disk_tar() 560 j->disk_fd = open(i->settings_temp_path, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664); in tar_pull_job_on_open_disk_settings() 561 if (j->disk_fd < 0) in tar_pull_job_on_open_disk_settings()
|
D | pull-job.h | 64 int disk_fd; member
|