Home
last modified time | relevance | path

Searched refs:final_path (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/import/
Dimport-fs.c103 _cleanup_free_ char *l = NULL, *final_path = NULL; in import_fs() local
126 final_path = strdup(local); in import_fs()
128 final_path = path_join(arg_image_root, local); in import_fs()
129 if (!final_path) in import_fs()
132 if (!path_is_valid(final_path)) in import_fs()
134 "Local path name '%s' is not valid.", final_path); in import_fs()
143 final_path = path_join(arg_image_root, local); in import_fs()
144 if (!final_path) in import_fs()
180 (void) rm_rf(final_path, REMOVE_ROOT|REMOVE_PHYSICAL|REMOVE_SUBVOLUME); in import_fs()
182 dest = final_path; in import_fs()
[all …]
Dimport-tar.c43 char *final_path; member
83 free(i->final_path); in tar_import_unref()
183 AT_FDCWD, i->final_path, in tar_import_finish()
188 … return log_error_errno(r, "Failed to move '%s' into place: %m", i->final_path ?: i->local); in tar_import_finish()
201 assert(!i->final_path); in tar_import_fork_tar()
209 i->final_path = path_join(i->image_root, i->local); in tar_import_fork_tar()
210 if (!i->final_path) in tar_import_fork_tar()
213 r = tempfn_random(i->final_path, NULL, &i->temp_path); in tar_import_fork_tar()
Dimport-raw.c42 char *final_path; member
81 free(i->final_path); in raw_import_unref()
169 assert(i->final_path); in raw_import_maybe_convert_qcow2()
178 r = tempfn_random(i->final_path, NULL, &f); in raw_import_maybe_convert_qcow2()
243 AT_FDCWD, i->final_path, in raw_import_finish()
262 assert(!i->final_path); in raw_import_open_disk()
282 i->final_path = strjoin(i->image_root, "/", i->local, ".raw"); in raw_import_open_disk()
283 if (!i->final_path) in raw_import_open_disk()
286 r = tempfn_random(i->final_path, NULL, &i->temp_path); in raw_import_open_disk()
Dpull-tar.c61 char *final_path; member
88 free(i->final_path); in tar_pull_unref()
232 assert(i->final_path); in tar_pull_make_local_copy()
242 i->final_path, in tar_pull_make_local_copy()
249 … r = copy_tree(i->final_path, t, UID_INVALID, GID_INVALID, COPY_REFLINK|COPY_HARDLINKS); in tar_pull_make_local_copy()
418 r = tar_pull_determine_path(i, NULL, &i->final_path); in tar_pull_job_on_finished()
426 assert(i->final_path); in tar_pull_job_on_finished()
436 AT_FDCWD, i->final_path, in tar_pull_job_on_finished()
440 … log_error_errno(r, "Failed to rename to final image name to %s: %m", i->final_path); in tar_pull_job_on_finished()
Dpull-raw.c66 char *final_path; member
105 free(i->final_path); in raw_pull_unref()
253 assert(i->final_path); in raw_pull_maybe_convert_qcow2()
263 r = tempfn_random(i->final_path, NULL, &f); in raw_pull_maybe_convert_qcow2()
366 i->raw_job->disk_fd = open(i->final_path, O_RDONLY|O_NOCTTY|O_CLOEXEC); in raw_pull_make_local_copy()
612 r = raw_pull_determine_path(i, ".raw", &i->final_path); in raw_pull_job_on_finished()
620 assert(i->final_path); in raw_pull_job_on_finished()
631 AT_FDCWD, i->final_path, in raw_pull_job_on_finished()
635 … log_error_errno(r, "Failed to move raw file to '%s': %m", i->final_path); in raw_pull_job_on_finished()
/systemd-251/src/sysupdate/
Dsysupdate-transfer.c45 free(t->final_path); in transfer_free()
833 assert(!t->final_path); in transfer_acquire_instance()
848 t->final_path = path_join(t->target.path, formatted_pattern); in transfer_acquire_instance()
849 if (!t->final_path) in transfer_acquire_instance()
852 r = tempfn_random(t->final_path, "sysupdate", &t->temporary_path); in transfer_acquire_instance()
856 where = t->final_path; in transfer_acquire_instance()
1152 assert(t->final_path); in transfer_install_instance()
1155 AT_FDCWD, t->final_path, in transfer_install_instance()
1160 … return log_error_errno(r, "Failed to move '%s' into place: %m", t->final_path); in transfer_install_instance()
1165 t->final_path, in transfer_install_instance()
[all …]
Dsysupdate-transfer.h41 char *final_path; member
/systemd-251/src/basic/
Dchase-symlinks.c540 _cleanup_free_ char *final_path = NULL; in chase_symlinks_and_fopen_unlocked() local
552 … fd = chase_symlinks_and_open(path, root, chase_flags, mode_flags, ret_path ? &final_path : NULL); in chase_symlinks_and_fopen_unlocked()
561 *ret_path = TAKE_PTR(final_path); in chase_symlinks_and_fopen_unlocked()