Lines Matching defs:temp_path
59 char *temp_path;
96 if (i->temp_path) {
97 (void) rm_rf(i->temp_path, REMOVE_ROOT|REMOVE_PHYSICAL|REMOVE_SUBVOLUME);
98 free(i->temp_path);
188 assert(i->temp_path);
201 r = import_make_read_only(i->temp_path);
209 r = rename_noreplace(AT_FDCWD, i->temp_path, AT_FDCWD, i->final_path);
213 i->temp_path = mfree(i->temp_path);
224 assert(!i->temp_path);
231 r = tempfn_random(i->final_path, NULL, &i->temp_path);
235 (void) mkdir_parents_label(i->temp_path, 0700);
237 r = btrfs_subvol_make(i->temp_path);
239 if (mkdir(i->temp_path, 0755) < 0)
240 return log_error_errno(errno, "Failed to create directory %s: %m", i->temp_path);
242 return log_error_errno(r, "Failed to create subvolume %s: %m", i->temp_path);
244 (void) import_assign_pool_quota_and_warn(i->temp_path);
246 i->tar_fd = import_fork_tar_x(i->temp_path, &i->tar_pid);