Lines Matching refs:dest_desc
921 int dst_dirfd, char const *dst_relname, int dest_desc, in set_owner() argument
944 && qset_acl (dst_name, dest_desc, restrictive_temp_mode) != 0) in set_owner()
953 if (fchown_or_lchown (dest_desc, dst_dirfd, dst_relname, uid, gid) == 0) in set_owner()
960 ignore_value (fchown_or_lchown (dest_desc, dst_dirfd, dst_relname, in set_owner()
979 set_author (char const *dst_name, int dest_desc, const struct stat *src_sb) in set_author() argument
986 file_t file = (dest_desc < 0 in set_author()
988 : getdport (dest_desc)); in set_author()
1001 (void) dest_desc; in set_author()
1180 int dest_desc, bool new_dst, enum Reflink_type reflink_mode) in handle_clone_fail() argument
1197 && ((! report_failure) || lseek (dest_desc, 0, SEEK_END) == 0) in handle_clone_fail()
1235 int dest_desc; in copy_reg() local
1288 dest_desc = openat (dst_dirfd, dst_relname, open_flags); in copy_reg()
1298 if (0 <= dest_desc in copy_reg()
1311 if (dest_desc < 0 && dest_errno != ENOENT in copy_reg()
1329 if (dest_desc < 0 && dest_errno == ENOENT) in copy_reg()
1422 dest_desc = -1; in copy_reg()
1453 dest_desc = openat (dst_dirfd, dst_relname, open_flags | O_EXCL, in copy_reg()
1467 if (dest_desc < 0 && dest_errno == EEXIST && ! x->move_mode) in copy_reg()
1474 dest_desc = openat (dst_dirfd, dst_relname, in copy_reg()
1490 if (dest_desc < 0 && dest_errno == EISDIR in copy_reg()
1499 if (dest_desc < 0) in copy_reg()
1510 if (clone_file (dest_desc, source_desc) == 0) in copy_reg()
1518 dest_desc, *new_dst, x->reflink_mode)) in copy_reg()
1528 else if (fstat (dest_desc, &sb) != 0) in copy_reg()
1540 && (fchmod_or_lchmod (dest_desc, dst_dirfd, dst_relname, temporary_mode) in copy_reg()
1598 ? lseek_copy (source_desc, dest_desc, &buf, buf_size, hole_size, in copy_reg()
1605 sparse_copy (source_desc, dest_desc, &buf, buf_size, in copy_reg()
1615 else if (wrote_hole_at_eof && ftruncate (dest_desc, n_read) < 0) in copy_reg()
1629 if (fdutimensat (dest_desc, dst_dirfd, dst_relname, timespec, 0) != 0) in copy_reg()
1644 switch (set_owner (x, dst_name, dst_dirfd, dst_relname, dest_desc, in copy_reg()
1659 if (!copy_attr (src_name, source_desc, dst_name, dest_desc, x) in copy_reg()
1664 set_author (dst_name, dest_desc, src_sb); in copy_reg()
1671 if (copy_acl (src_name, source_desc, dst_name, dest_desc, src_mode) != 0 in copy_reg()
1677 if (set_acl (dst_name, dest_desc, x->mode) != 0) in copy_reg()
1682 if (set_acl (dst_name, dest_desc, MODE_RW_UGO & ~cached_umask ()) != 0) in copy_reg()
1689 && (fchmod_or_lchmod (dest_desc, dst_dirfd, dst_relname, in copy_reg()
1700 if (dest_desc < 0) in copy_reg()
1704 if (close (dest_desc) < 0) in copy_reg()