Lines Matching refs:copy_flags

93 static int look_for_signals(CopyFlags copy_flags) {  in look_for_signals()  argument
96 if ((copy_flags & (COPY_SIGINT|COPY_SIGTERM)) == 0) in look_for_signals()
99 r = pop_pending_signal(copy_flags & COPY_SIGINT ? SIGINT : 0, in look_for_signals()
100 copy_flags & COPY_SIGTERM ? SIGTERM : 0); in look_for_signals()
154 CopyFlags copy_flags, in copy_bytes_full() argument
182 if ((copy_flags & COPY_REFLINK)) { in copy_bytes_full()
239 r = look_for_signals(copy_flags); in copy_bytes_full()
246 if (copy_flags & COPY_HOLES) { in copy_bytes_full()
471 CopyFlags copy_flags) { in fd_copy_symlink() argument
484 if (copy_flags & COPY_MAC_CREATE) { in fd_copy_symlink()
490 if (copy_flags & COPY_MAC_CREATE) in fd_copy_symlink()
521 CopyFlags copy_flags) { in hardlink_context_setup() argument
547 if (!FLAGS_SET(copy_flags, COPY_HARDLINKS)) in hardlink_context_setup()
687 CopyFlags copy_flags, in fd_copy_regular() argument
709 if (copy_flags & COPY_MAC_CREATE) { in fd_copy_regular()
715 if (copy_flags & COPY_MAC_CREATE) in fd_copy_regular()
720 r = copy_bytes_full(fdf, fdt, UINT64_MAX, copy_flags, NULL, NULL, progress, userdata); in fd_copy_regular()
733 (void) copy_xattr(fdf, fdt, copy_flags); in fd_copy_regular()
735 if (copy_flags & COPY_FSYNC) { in fd_copy_regular()
764 CopyFlags copy_flags, in fd_copy_fifo() argument
778 if (copy_flags & COPY_MAC_CREATE) { in fd_copy_fifo()
784 if (copy_flags & COPY_MAC_CREATE) in fd_copy_fifo()
812 CopyFlags copy_flags, in fd_copy_node() argument
826 if (copy_flags & COPY_MAC_CREATE) { in fd_copy_node()
832 if (copy_flags & COPY_MAC_CREATE) in fd_copy_node()
862 CopyFlags copy_flags, in fd_copy_directory() argument
894 r = hardlink_context_setup(&our_hardlink_context, dt, to, copy_flags); in fd_copy_directory()
907 if (copy_flags & COPY_MERGE_EMPTY) { in fd_copy_directory()
918 if (copy_flags & COPY_MAC_CREATE) in fd_copy_directory()
924 else if (errno == EEXIST && (copy_flags & COPY_MERGE)) in fd_copy_directory()
945 r = look_for_signals(copy_flags); in fd_copy_directory()
985 if (FLAGS_SET(copy_flags, COPY_SAME_MOUNT)) { in fd_copy_directory()
996 …de->d_name, original_device, depth_left-1, override_uid, override_gid, copy_flags, hardlink_contex… in fd_copy_directory()
998 …rfd(d), de->d_name, &buf, fdt, de->d_name, override_uid, override_gid, copy_flags, hardlink_contex… in fd_copy_directory()
1000 …_copy_symlink(dirfd(d), de->d_name, &buf, fdt, de->d_name, override_uid, override_gid, copy_flags); in fd_copy_directory()
1002 …rfd(d), de->d_name, &buf, fdt, de->d_name, override_uid, override_gid, copy_flags, hardlink_contex… in fd_copy_directory()
1004 …rfd(d), de->d_name, &buf, fdt, de->d_name, override_uid, override_gid, copy_flags, hardlink_contex… in fd_copy_directory()
1010 if (q == -EEXIST && (copy_flags & COPY_MERGE)) in fd_copy_directory()
1025 (void) copy_xattr(dirfd(d), fdt, copy_flags); in fd_copy_directory()
1029 if (copy_flags & COPY_FSYNC_FULL) { in fd_copy_directory()
1044 CopyFlags copy_flags, in copy_tree_at_full() argument
1059 …r = fd_copy_regular(fdf, from, &st, fdt, to, override_uid, override_gid, copy_flags, NULL, progres… in copy_tree_at_full()
1061 …, &st, fdt, to, st.st_dev, COPY_DEPTH_MAX, override_uid, override_gid, copy_flags, NULL, NULL, pro… in copy_tree_at_full()
1063 … r = fd_copy_symlink(fdf, from, &st, fdt, to, override_uid, override_gid, copy_flags); in copy_tree_at_full()
1065 … r = fd_copy_fifo(fdf, from, &st, fdt, to, override_uid, override_gid, copy_flags, NULL); in copy_tree_at_full()
1067 … r = fd_copy_node(fdf, from, &st, fdt, to, override_uid, override_gid, copy_flags, NULL); in copy_tree_at_full()
1073 if (S_ISDIR(st.st_mode) && (copy_flags & COPY_SYNCFS)) { in copy_tree_at_full()
1078 } else if ((copy_flags & (COPY_FSYNC_FULL|COPY_SYNCFS)) != 0) { in copy_tree_at_full()
1092 static int sync_dir_by_flags(const char *path, CopyFlags copy_flags) { in sync_dir_by_flags() argument
1094 if (copy_flags & COPY_SYNCFS) in sync_dir_by_flags()
1096 if (copy_flags & COPY_FSYNC_FULL) in sync_dir_by_flags()
1105 CopyFlags copy_flags, in copy_directory_fd_full() argument
1130 copy_flags, in copy_directory_fd_full()
1138 r = sync_dir_by_flags(to, copy_flags); in copy_directory_fd_full()
1148 CopyFlags copy_flags, in copy_directory_full() argument
1173 copy_flags, in copy_directory_full()
1181 r = sync_dir_by_flags(to, copy_flags); in copy_directory_full()
1191 CopyFlags copy_flags, in copy_file_fd_full() argument
1213 r = copy_bytes_full(fdf, fdt, UINT64_MAX, copy_flags, NULL, NULL, progress_bytes, userdata); in copy_file_fd_full()
1221 (void) copy_times(fdf, fdt, copy_flags); in copy_file_fd_full()
1222 (void) copy_xattr(fdf, fdt, copy_flags); in copy_file_fd_full()
1225 if (copy_flags & COPY_FSYNC_FULL) { in copy_file_fd_full()
1229 } else if (copy_flags & COPY_FSYNC) { in copy_file_fd_full()
1244 CopyFlags copy_flags, in copy_file_full() argument
1267 if (copy_flags & COPY_MAC_CREATE) { in copy_file_full()
1274 if (copy_flags & COPY_MAC_CREATE) in copy_file_full()
1289 r = copy_bytes_full(fdf, fdt, UINT64_MAX, copy_flags, NULL, NULL, progress_bytes, userdata); in copy_file_full()
1293 (void) copy_times(fdf, fdt, copy_flags); in copy_file_full()
1294 (void) copy_xattr(fdf, fdt, copy_flags); in copy_file_full()
1299 if (copy_flags & (COPY_FSYNC|COPY_FSYNC_FULL)) { in copy_file_full()
1310 if (copy_flags & COPY_FSYNC_FULL) { in copy_file_full()
1332 CopyFlags copy_flags, in copy_file_atomic_full() argument
1349 if (copy_flags & COPY_REPLACE) { in copy_file_atomic_full()
1356 if (copy_flags & COPY_MAC_CREATE) { in copy_file_atomic_full()
1362 if (copy_flags & COPY_MAC_CREATE) in copy_file_atomic_full()
1369 if (copy_flags & COPY_MAC_CREATE) { in copy_file_atomic_full()
1375 if (copy_flags & COPY_MAC_CREATE) in copy_file_atomic_full()
1384 r = copy_file_fd_full(from, fdt, copy_flags, progress_bytes, userdata); in copy_file_atomic_full()
1391 if ((copy_flags & (COPY_FSYNC|COPY_FSYNC_FULL))) { in copy_file_atomic_full()
1397 if (copy_flags & COPY_REPLACE) { in copy_file_atomic_full()
1415 if (copy_flags & COPY_FSYNC_FULL) { in copy_file_atomic_full()
1479 int copy_xattr(int fdf, int fdt, CopyFlags copy_flags) { in copy_xattr() argument
1491 if (!FLAGS_SET(copy_flags, COPY_ALL_XATTRS) && !startswith(p, "user.")) in copy_xattr()