Lines Matching defs:full_path
44 char *temp_path, *full_path;
251 if ((slash = strrchr(file->full_path, '/')) != NULL) {
252 str_append_n(str, file->full_path, slash - file->full_path);
281 const char *path = file->full_path;
330 file->full_path = fs->path_prefix == NULL ? i_strdup(file->file.path) :
344 file->full_path);
374 i_free(file->full_path);
401 e_error(_file->event, "posix_fadvise(%s) failed: %m", file->full_path);
420 file->full_path);
427 fs_set_error(_file->fs, "read(%s) failed: %m", file->full_path);
444 i_stream_set_name(input, file->full_path);
465 i_free(file->full_path);
466 file->full_path = fs->path_prefix == NULL ? i_strdup(file->file.path) :
479 file->full_path);
488 if ((ret = link(file->temp_path, file->full_path)) < 0) {
490 file->temp_path, file->full_path);
505 if (rename(file->temp_path, file->full_path) < 0) {
507 file->temp_path, file->full_path);
535 file->full_path);
544 fs_set_error(_file->fs, "write(%s) failed: %m", file->full_path);
550 file->full_path, (size_t)ret, size);
574 o_stream_set_name(_file->output, file->full_path);
620 "(for file %s)", file->full_path);
623 ret = file_try_lock(file->fd, file->full_path, F_WRLCK,
627 ret = file_wait_lock(file->fd, file->full_path, F_WRLCK,
633 file->full_path);
643 ret = file_dotlock_create(&dotlock_set, file->full_path,
650 file->full_path);
679 if (stat(file->full_path, &st) < 0) {
682 file->full_path);
699 fs_set_error(_file->fs, "fstat(%s) failed: %m", file->full_path);
703 if (stat(file->full_path, st_r) < 0) {
704 fs_set_error(_file->fs, "stat(%s) failed: %m", file->full_path);
719 ret = link(src->full_path, dest->full_path);
722 i_unlink_if_exists(dest->full_path);
723 ret = link(src->full_path, dest->full_path);
727 if (fs_posix_mkdir_parents(fs, dest->full_path) < 0)
729 ret = link(src->full_path, dest->full_path);
734 src->full_path, dest->full_path);
748 ret = rename(src->full_path, dest->full_path);
751 if (fs_posix_mkdir_parents(fs, dest->full_path) < 0)
753 ret = rename(src->full_path, dest->full_path);
758 src->full_path, dest->full_path);
769 if (unlink(file->full_path) < 0) {
771 fs_set_error(_file->fs, "unlink(%s) failed: %m", file->full_path);
776 if (rmdir(file->full_path) < 0) {
777 fs_set_error(_file->fs, "rmdir(%s) failed: %m", file->full_path);
781 (void)fs_posix_rmdir_parents(fs, file->full_path);