Lines Matching refs:src_name
121 static bool copy_internal (char const *src_name, char const *dst_name,
315 char const *src_name, char const *dst_name, in sparse_copy() argument
372 quoteaf_n (0, src_name), quoteaf_n (1, dst_name)); in sparse_copy()
397 error (0, errno, _("error reading %s"), quoteaf (src_name)); in sparse_copy()
459 error (0, 0, _("overflow reading %s"), quoteaf (src_name)); in sparse_copy()
549 char const *src_name, char const *dst_name) in lseek_copy() argument
625 true, allow_reflink, src_name, dst_name, in lseek_copy()
671 error (0, errno, _("cannot lseek %s"), quoteaf (src_name)); in lseek_copy()
848 char *src_name = file_name_concat (src_name_in, namep, nullptr); in copy_dir() local
853 ok &= copy_internal (src_name, dst_name, dst_dirfd, in copy_dir()
862 free (src_name); in copy_dir()
1016 set_process_security_ctx (char const *src_name, char const *dst_name, in set_process_security_ctx() argument
1026 if (0 <= lgetfilecon (src_name, &con)) in set_process_security_ctx()
1048 quoteaf (src_name)); in set_process_security_ctx()
1179 char const *src_name, char const *dst_name, in handle_clone_fail() argument
1191 quoteaf_n (0, dst_name), quoteaf_n (1, src_name)); in handle_clone_fail()
1228 copy_reg (char const *src_name, char const *dst_name, in copy_reg() argument
1250 source_desc = open (src_name, in copy_reg()
1255 error (0, errno, _("cannot open %s for reading"), quoteaf (src_name)); in copy_reg()
1261 error (0, errno, _("cannot fstat %s"), quoteaf (src_name)); in copy_reg()
1272 quoteaf (src_name)); in copy_reg()
1335 if (! set_process_security_ctx (src_name, dst_name, dst_mode, in copy_reg()
1425 if (! handle_clone_fail (dst_dirfd, dst_relname, src_name, in copy_reg()
1517 if (! handle_clone_fail (dst_dirfd, dst_relname, src_name, dst_name, in copy_reg()
1555 error (0, errno, _("cannot lseek %s"), quoteaf (src_name)); in copy_reg()
1602 src_name, dst_name) in copy_reg()
1609 src_name, dst_name, UINTMAX_MAX, &n_read, in copy_reg()
1659 if (!copy_attr (src_name, source_desc, dst_name, dest_desc, x) in copy_reg()
1671 if (copy_acl (src_name, source_desc, dst_name, dest_desc, src_mode) != 0 in copy_reg()
1712 error (0, errno, _("failed to close %s"), quoteaf (src_name)); in copy_reg()
1736 same_file_ok (char const *src_name, struct stat const *src_sb, in same_file_ok() argument
1770 bool sn = same_nameat (AT_FDCWD, src_name, dst_dirfd, dst_relname); in same_file_ok()
1801 || lstat (src_name, &tmp_src_sb) != 0) in same_file_ok()
1854 return ! same_nameat (AT_FDCWD, src_name, dst_dirfd, dst_relname); in same_file_ok()
1887 && ! same_nameat (AT_FDCWD, src_name, dst_dirfd, dst_relname)) in same_file_ok()
1930 char *abs_src = canonicalize_file_name (src_name); in same_file_ok()
1948 else if (stat (src_name, &tmp_src_sb) != 0) in same_file_ok()
2119 create_hard_link (char const *src_name, int src_dirfd, char const *src_relname, in create_hard_link() argument
2130 if (!src_name) in create_hard_link()
2131 src_name = a_src_name = subst_suffix (dst_name, dst_relname, in create_hard_link()
2134 quoteaf_n (0, dst_name), quoteaf_n (1, src_name)); in create_hard_link()
2194 copy_internal (char const *src_name, char const *dst_name, in copy_internal() argument
2226 rename_errno = (renameatu (AT_FDCWD, src_name, dst_dirfd, drelname, in copy_internal()
2237 char const *name = rename_errno == 0 ? dst_name : src_name; in copy_internal()
2239 char const *relname = rename_errno == 0 ? drelname : src_name; in copy_internal()
2255 quoteaf (src_name)); in copy_internal()
2275 && seen_file (x->src_info, src_name, &src_sb)) in copy_internal()
2278 quoteaf (src_name)); in copy_internal()
2282 record_file (x->src_info, src_name, &src_sb); in copy_internal()
2349 && ! same_file_ok (src_name, &src_sb, dst_dirfd, drelname, in copy_internal()
2353 quoteaf_n (0, src_name), quoteaf_n (1, dst_name)); in copy_internal()
2465 quoteaf_n (0, dst_name), quoteaf_n (1, src_name)); in copy_internal()
2483 quoteaf_n (0, dst_name), quoteaf_n (1, src_name)); in copy_internal()
2515 quotef_n (0, src_name), quotef_n (0, dst_name)); in copy_internal()
2524 && ! dot_or_dotdot (srcbase = last_component (src_name)) in copy_internal()
2546 quoteaf_n (1, src_name)); in copy_internal()
2618 quoteaf_n (0, src_name), quoteaf_n (1, dst_name)); in copy_internal()
2628 emit_verbose (src_name, dst_name, dst_backup); in copy_internal()
2697 if (same_nameat (AT_FDCWD, src_name, dst_dirfd, earlier_file)) in copy_internal()
2756 rename_errno = (renameat (AT_FDCWD, src_name, dst_dirfd, drelname) == 0 in copy_internal()
2764 emit_verbose (src_name, dst_name, dst_backup); in copy_internal()
2860 quoteaf_n (0, src_name), quoted_dst_name); in copy_internal()
2880 quoteaf_n (0, src_name), quoteaf_n (1, dst_name)); in copy_internal()
2888 emit_verbose (src_name, dst_name, dst_backup); in copy_internal()
2910 if (! set_process_security_ctx (src_name, dst_name, src_mode, new_dst, x)) in copy_internal()
2925 quoteaf (src_name)); in copy_internal()
2989 emit_verbose (src_name, dst_name, nullptr); in copy_internal()
3019 delayed_ok = copy_dir (src_name, dst_name, dst_dirfd, dst_relname, in copy_internal()
3028 if (*src_name != '/') in copy_internal()
3057 int err = force_symlinkat (src_name, dst_dirfd, dst_relname, in copy_internal()
3062 quoteaf_n (0, dst_name), quoteaf_n (1, src_name)); in copy_internal()
3086 if (! create_hard_link (src_name, AT_FDCWD, src_name, in copy_internal()
3104 if (! copy_reg (src_name, dst_name, dst_dirfd, dst_relname, in copy_internal()
3135 char *src_link_val = areadlink_with_size (src_name, src_sb.st_size); in copy_internal()
3140 quoteaf (src_name)); in copy_internal()
3199 error (0, 0, _("%s has unknown file type"), quoteaf (src_name)); in copy_internal()
3278 if (x->preserve_xattr && ! copy_attr (src_name, -1, dst_name, -1, x) in copy_internal()
3290 if (copy_acl (src_name, -1, dst_name, -1, src_mode) != 0 in copy_internal()
3401 copy (char const *src_name, char const *dst_name, in copy() argument
3415 top_level_src_name = src_name; in copy()
3419 return copy_internal (src_name, dst_name, dst_dirfd, dst_relname, in copy()