Lines Matching defs:temp_path
78 char *temp_path;
103 if (i->temp_path) {
104 (void) rm_rf(i->temp_path, REMOVE_ROOT|REMOVE_PHYSICAL|REMOVE_SUBVOLUME);
105 free(i->temp_path);
336 r = import_make_read_only(i->temp_path);
340 r = rename_noreplace(AT_FDCWD, i->temp_path, AT_FDCWD, i->final_path);
346 i->temp_path = mfree(i->temp_path);
399 assert(!i->temp_path);
406 r = tempfn_random(i->final_path, NULL, &i->temp_path);
410 mkdir_parents_label(i->temp_path, 0700);
412 r = btrfs_subvol_make(i->temp_path);
414 if (mkdir(i->temp_path, 0755) < 0)
415 return log_error_errno(errno, "Failed to create directory %s: %m", i->temp_path);
417 return log_error_errno(r, "Failed to create subvolume %s: %m", i->temp_path);
419 (void) import_assign_pool_quota_and_warn(i->temp_path);
421 j->disk_fd = import_fork_tar_x(i->temp_path, &i->tar_pid);