Lines Matching defs:raw_job
65 PullJob *raw_job;
91 pull_job_unref(i->raw_job);
191 if (i->raw_job)
192 percent += i->raw_job->progress_percent * remain / 100;
226 assert(i->raw_job);
228 r = qcow2_detect(i->raw_job->disk_fd);
249 r = qcow2_convert(i->raw_job->disk_fd, converted_fd);
260 safe_close(i->raw_job->disk_fd);
261 i->raw_job->disk_fd = converted_fd;
274 assert(i->raw_job);
280 r = pull_make_path(i->raw_job->url, i->raw_job->etag, i->image_root, ".raw-", ".raw", &i->final_path);
285 if (i->raw_job->etag_exists) {
288 assert(i->raw_job->disk_fd < 0);
290 i->raw_job->disk_fd = open(i->final_path, O_RDONLY|O_NOCTTY|O_CLOEXEC);
291 if (i->raw_job->disk_fd < 0)
296 assert(i->raw_job->disk_fd >= 0);
298 if (lseek(i->raw_job->disk_fd, SEEK_SET, 0) == (off_t) -1)
323 r = copy_bytes(i->raw_job->disk_fd, dfd, (uint64_t) -1, true);
329 (void) copy_times(i->raw_job->disk_fd, dfd);
330 (void) copy_xattr(i->raw_job->disk_fd, dfd);
369 assert(i->raw_job);
371 if (!PULL_JOB_IS_COMPLETE(i->raw_job))
419 if (!i->raw_job->etag_exists) {
421 assert(i->raw_job->disk_fd >= 0);
425 r = pull_verify(i->raw_job, i->settings_job, i->checksum_job, i->signature_job);
437 r = import_make_read_only_fd(i->raw_job->disk_fd);
493 assert(i->raw_job == j);
578 if (i->raw_job)
590 r = pull_job_new(&i->raw_job, url, i->glue, i);
594 i->raw_job->on_finished = raw_pull_job_on_finished;
595 i->raw_job->on_open_disk = raw_pull_job_on_open_disk_raw;
596 i->raw_job->on_progress = raw_pull_job_on_progress;
597 i->raw_job->calc_checksum = verify != IMPORT_VERIFY_NO;
598 i->raw_job->grow_machine_directory = i->grow_machine_directory;
600 r = pull_find_old_etags(url, i->image_root, DT_REG, ".raw-", ".raw", &i->raw_job->old_etags);
622 r = pull_job_begin(i->raw_job);